Skip to content
Snippets Groups Projects
Commit 22b9bef4 authored by David Cole's avatar David Cole
Browse files

Fix bogus calls to GetMemoryStatus and GetMemoryStatusEx: need to set the...

Fix bogus calls to GetMemoryStatus and GetMemoryStatusEx: need to set the dwLength member of the struct prior to calling. Otherwise it's just a garbage value from the stack. Also, pay attention to return value of GetMemoryStatusEx: if it indicates failure then just return 0 without using any of the other data the call returns.
parent bc1f7eb8
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment