xenia-project / xenia

Xbox 360 Emulator Research Project
https://xenia.jp
Other
7.87k stars 1.11k forks source link

[BASE] Fixed VirtualQuery possibly uninitialized parameter #2235

Open guccigang420 opened 8 months ago

guccigang420 commented 8 months ago

Here we pass our possibly uninitialized length parameter as a parameter to VirtualQuery, when in fact what we should pass there is sizeof(info).

https://learn.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualquery