Dmitry Timoshkov : kernel32: Truncate the reported by GlobalMemoryStatus() memory limits for Win9x versions too.
Alexandre Julliard
julliard at winehq.org
Thu Dec 2 16:30:51 CST 2010
Module: wine
Branch: stable
Commit: 1036b2e0af8dcaeb82b85758a0a65b77d6cb3e9a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1036b2e0af8dcaeb82b85758a0a65b77d6cb3e9a
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Wed Oct 6 19:05:01 2010 +0900
kernel32: Truncate the reported by GlobalMemoryStatus() memory limits for Win9x versions too.
(cherry picked from commit 83bfa7636ee7457806b389e5626066c6ac435488)
---
dlls/kernel32/heap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/heap.c b/dlls/kernel32/heap.c
index bdfa00b..3c190b3 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 );
More information about the wine-cvs
mailing list