mirror of
https://github.com/xenia-project/xenia.git
synced 2026-07-11 01:24:34 +02:00
[Base/Memory] Fix VirtualQuery length parameter
This commit is contained in:
@@ -162,7 +162,7 @@ bool QueryProtect(void* base_address, size_t& length, PageAccess& access_out) {
|
||||
MEMORY_BASIC_INFORMATION info;
|
||||
ZeroMemory(&info, sizeof(info));
|
||||
|
||||
SIZE_T result = VirtualQuery(base_address, &info, length);
|
||||
SIZE_T result = VirtualQuery(base_address, &info, sizeof(info));
|
||||
if (!result) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user