might be nice to know the size and address before printing it...

This commit is contained in:
Kelvin Sherlock 2019-01-17 20:56:40 -05:00
parent 20dbaed874
commit 54d09408bb

View File

@ -257,14 +257,15 @@ void dump_handle(Handle h) {
address = 0;
size = 0;
printf(" Handle: $%08lx Address: $%08lx Size: $%04x\r\r", (LongWord)h,
(LongWord)address, size);
if (h) {
size = GetHandleSize(h);
address = *(void **)h;
}
printf(" Handle: $%08lx Address: $%08lx Size: $%04x\r\r", (LongWord)h,
(LongWord)address, size);
if (size) {
hexdump(address, size);
}