mirror of
https://github.com/ksherlock/tcpsnooper.git
synced 2024-12-22 17:30:08 +00:00
might be nice to know the size and address before printing it...
This commit is contained in:
parent
20dbaed874
commit
54d09408bb
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user