Minor fix in GlobalMemoryStatus to get some applications happy.
authorFilip Navara <filip.navara@gmail.com>
Wed, 21 Jan 2004 18:57:21 +0000 (18:57 +0000)
committerFilip Navara <filip.navara@gmail.com>
Wed, 21 Jan 2004 18:57:21 +0000 (18:57 +0000)
svn path=/trunk/; revision=7812

reactos/lib/kernel32/mem/global.c

index 6d6592f..3c4eb0f 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: global.c,v 1.18 2003/12/30 23:16:43 sedwards Exp $
+/* $Id: global.c,v 1.19 2004/01/21 18:57:21 navaraf Exp $
  *
  * Win32 Global/Local heap functions (GlobalXXX, LocalXXX).
  * These functions included in Win32 for compatibility with 16 bit Windows
@@ -364,11 +364,12 @@ GlobalMemoryStatus(LPMEMORYSTATUS lpBuffer)
 //    }
 //    cache_lastchecked = GetSystemTimeAsFileTime(NULL);
 
+    lpBuffer->dwLength        = sizeof(MEMORYSTATUS);
     lpBuffer->dwMemoryLoad    = 0;
-    lpBuffer->dwTotalPhys     = 16*1024*1024;
-    lpBuffer->dwAvailPhys     = 16*1024*1024;
-    lpBuffer->dwTotalPageFile = 16*1024*1024;
-    lpBuffer->dwAvailPageFile = 16*1024*1024;
+    lpBuffer->dwTotalPhys     = 32*1024*1024;
+    lpBuffer->dwAvailPhys     = 32*1024*1024;
+    lpBuffer->dwTotalPageFile = 32*1024*1024;
+    lpBuffer->dwAvailPageFile = 32*1024*1024;
 
     /* Some applications (e.g. QuickTime 6) crash if we tell them there
      * is more than 2GB of physical memory.