Ray Hinchliffe : kernel32: Correct ullTotalVirtual for GlobalMemoryStatusEx ().

Alexandre Julliard julliard at winehq.org
Wed Oct 14 09:02:01 CDT 2009


Module: wine
Branch: master
Commit: 2c725de6dee07d2cc3c22c7df6d371c2b78e6ddb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2c725de6dee07d2cc3c22c7df6d371c2b78e6ddb

Author: Ray Hinchliffe <ray at rh-software.com>
Date:   Wed Oct 14 09:23:45 2009 +0100

kernel32: Correct ullTotalVirtual for GlobalMemoryStatusEx().

---

 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 e85ccc3..ead0778 100644
--- a/dlls/kernel32/heap.c
+++ b/dlls/kernel32/heap.c
@@ -1274,7 +1274,7 @@ BOOL WINAPI GlobalMemoryStatusEx( LPMEMORYSTATUSEX lpmemex )
 
     /* FIXME: should do something for other systems */
     GetSystemInfo(&si);
-    lpmemex->ullTotalVirtual  = (char*)si.lpMaximumApplicationAddress-(char*)si.lpMinimumApplicationAddress;
+    lpmemex->ullTotalVirtual  = (ULONG_PTR)si.lpMaximumApplicationAddress-(ULONG_PTR)si.lpMinimumApplicationAddress;
     /* FIXME: we should track down all the already allocated VM pages and substract them, for now arbitrarily remove 64KB so that it matches NT */
     lpmemex->ullAvailVirtual  = lpmemex->ullTotalVirtual-64*1024;
 




More information about the wine-cvs mailing list