kernel32: Truncate the reported by GlobalMemoryStatus() memory limits for Win9x versions too.

This commit is contained in:
Dmitry Timoshkov 2010-10-06 19:05:01 +09:00 committed by Alexandre Julliard
parent d08fc66732
commit 83bfa7636e
1 changed files with 1 additions and 1 deletions

View File

@ -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 );