diff --git a/snooper.c b/snooper.c index 058db6b..fa312b7 100644 --- a/snooper.c +++ b/snooper.c @@ -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); }