From 54d09408bb774022e295a5f002b6bf3e12c17c3f Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Thu, 17 Jan 2019 20:56:40 -0500 Subject: [PATCH] might be nice to know the size and address before printing it... --- snooper.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); }