Changed check from available to total physical memory.

This commit is contained in:
Duarte Silva 2015-05-27 19:35:46 +01:00
parent 01ac4d2153
commit 7c591a0b2a
1 changed files with 1 additions and 1 deletions

View File

@ -156,6 +156,6 @@ int gensandbox_less_than_onegb() {
statex.dwLength = sizeof (statex);
GlobalMemoryStatusEx(&statex);
return (statex.ullAvailPhys/1024) < 1048576 ? TRUE : FALSE;
return (statex.ullTotalPhys/1024) < 1048576 ? TRUE : FALSE;
}