From 83bfa7636ee7457806b389e5626066c6ac435488 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Wed, 6 Oct 2010 19:05:01 +0900 Subject: [PATCH] kernel32: Truncate the reported by GlobalMemoryStatus() memory limits for Win9x versions too. --- dlls/kernel32/heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/kernel32/heap.c b/dlls/kernel32/heap.c index e20f8fb7cd4..7be91725239 100644 --- a/dlls/kernel32/heap.c +++ b/dlls/kernel32/heap.c @@ -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 );