@@ -37,34 +37,34 @@ void DumpHex(const void* data, size_t size) {
37
37
38
38
void print_protection (void * address, DWORD protections) {
39
39
if (protections & PAGE_READONLY)
40
- wprintf (L" print_protection: 0x%p is PAGE_READONLY\n " );
40
+ wprintf (L" print_protection: 0x%p is PAGE_READONLY\n " , address );
41
41
if (protections & PAGE_READWRITE)
42
- wprintf (L" print_protection: 0x%p is PAGE_READWRITE\n " );
42
+ wprintf (L" print_protection: 0x%p is PAGE_READWRITE\n " , address );
43
43
if (protections & PAGE_NOACCESS)
44
- wprintf (L" print_protection: 0x%p is PAGE_NOACCESS\n " );
44
+ wprintf (L" print_protection: 0x%p is PAGE_NOACCESS\n " , address );
45
45
if (protections & PAGE_WRITECOPY)
46
- wprintf (L" print_protection: 0x%p is PAGE_WRITECOPY\n " );
46
+ wprintf (L" print_protection: 0x%p is PAGE_WRITECOPY\n " , address );
47
47
if (protections & PAGE_EXECUTE)
48
- wprintf (L" print_protection: 0x%p is PAGE_EXECUTE\n " );
48
+ wprintf (L" print_protection: 0x%p is PAGE_EXECUTE\n " , address );
49
49
if (protections & PAGE_EXECUTE_READ)
50
- wprintf (L" print_protection: 0x%p is PAGE_EXECUTE_READ\n " );
50
+ wprintf (L" print_protection: 0x%p is PAGE_EXECUTE_READ\n " , address );
51
51
if (protections & PAGE_EXECUTE_READWRITE)
52
- wprintf (L" print_protection: 0x%p is PAGE_EXECUTE_READWRITE\n " );
52
+ wprintf (L" print_protection: 0x%p is PAGE_EXECUTE_READWRITE\n " , address );
53
53
if (protections & PAGE_EXECUTE_WRITECOPY)
54
- wprintf (L" print_protection: 0x%p is PAGE_EXECUTE_WRITECOPY\n " );
54
+ wprintf (L" print_protection: 0x%p is PAGE_EXECUTE_WRITECOPY\n " , address );
55
55
if (protections & PAGE_GUARD)
56
- wprintf (L" print_protection: 0x%p is PAGE_GUARD\n " );
56
+ wprintf (L" print_protection: 0x%p is PAGE_GUARD\n " , address );
57
57
if (protections & PAGE_NOCACHE)
58
- wprintf (L" print_protection: 0x%p is PAGE_NOCACHE\n " );
58
+ wprintf (L" print_protection: 0x%p is PAGE_NOCACHE\n " , address );
59
59
}
60
60
61
61
void print_type (void * address, DWORD type) {
62
62
if (type & MEM_IMAGE)
63
- wprintf (L" print_type: 0x%p is MEM_IMAGE\n " );
63
+ wprintf (L" print_type: 0x%p is MEM_IMAGE\n " , address );
64
64
if (type & MEM_MAPPED)
65
- wprintf (L" print_type: 0x%p is MEM_MAPPED\n " );
65
+ wprintf (L" print_type: 0x%p is MEM_MAPPED\n " , address );
66
66
if (type & MEM_PRIVATE)
67
- wprintf (L" print_type: 0x%p is MEM_PRIVATE\n " );
67
+ wprintf (L" print_type: 0x%p is MEM_PRIVATE\n " , address );
68
68
}
69
69
#endif
70
70
0 commit comments