| ... | @@ -1493,9 +1493,9 @@ pub fn VirtualFree(lpAddress: ?LPVOID, dwSize: usize, dwFreeType: DWORD) void { | ... | @@ -1493,9 +1493,9 @@ pub fn VirtualFree(lpAddress: ?LPVOID, dwSize: usize, dwFreeType: DWORD) void { |
| 1493 | assert(kernel32.VirtualFree(lpAddress, dwSize, dwFreeType) != 0); | 1493 | assert(kernel32.VirtualFree(lpAddress, dwSize, dwFreeType) != 0); |
| 1494 | } | 1494 | } |
| 1495 | | 1495 | |
| 1496 | pub const VirtualQuerryError = error{Unexpected}; | 1496 | pub const VirtualQueryError = error{Unexpected}; |
| 1497 | | 1497 | |
| 1498 | pub fn VirtualQuery(lpAddress: ?LPVOID, lpBuffer: PMEMORY_BASIC_INFORMATION, dwLength: SIZE_T) VirtualQuerryError!SIZE_T { | 1498 | pub fn VirtualQuery(lpAddress: ?LPVOID, lpBuffer: PMEMORY_BASIC_INFORMATION, dwLength: SIZE_T) VirtualQueryError!SIZE_T { |
| 1499 | const rc = kernel32.VirtualQuery(lpAddress, lpBuffer, dwLength); | 1499 | const rc = kernel32.VirtualQuery(lpAddress, lpBuffer, dwLength); |
| 1500 | if (rc == 0) { | 1500 | if (rc == 0) { |
| 1501 | switch (kernel32.GetLastError()) { | 1501 | switch (kernel32.GetLastError()) { |