Skip to content

Commit

Permalink
might be nice to know the size and address before printing it...
Browse files Browse the repository at this point in the history
  • Loading branch information
ksherlock committed Jan 18, 2019
1 parent 20dbaed commit 54d0940
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions snooper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 54d0940

Please sign in to comment.