kernel32: Truncate the reported by GlobalMemoryStatus() memory limits for Win9x versions too.
This commit is contained in:
parent
d08fc66732
commit
83bfa7636e
|
@ -1325,7 +1325,7 @@ VOID WINAPI GlobalMemoryStatus( LPMEMORYSTATUS lpBuffer )
|
|||
osver.dwOSVersionInfoSize = sizeof(osver);
|
||||
GetVersionExW(&osver);
|
||||
|
||||
if ( osver.dwMajorVersion >= 5 )
|
||||
if ( osver.dwMajorVersion >= 5 || osver.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS )
|
||||
{
|
||||
lpBuffer->dwTotalPhys = min( memstatus.ullTotalPhys, MAXDWORD );
|
||||
lpBuffer->dwAvailPhys = min( memstatus.ullAvailPhys, MAXDWORD );
|
||||
|
|
Loading…
Reference in New Issue