Module: wine Branch: master Commit: 2c725de6dee07d2cc3c22c7df6d371c2b78e6ddb URL: http://source.winehq.org/git/wine.git/?a=commit;h=2c725de6dee07d2cc3c22c7df6...
Author: Ray Hinchliffe ray@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;