mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Minor fix in GlobalMemoryStatus to get some applications happy.
svn path=/trunk/; revision=7812
This commit is contained in:
parent
f25f3c010a
commit
f6e5603bdb
1 changed files with 6 additions and 5 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue