mirror of
https://github.com/reactos/wine.git
synced 2025-04-02 16:12:04 +00:00
Some borken memory monitoring programs divide by dwTotalPageFile,
which probably isn't zero on windows.
This commit is contained in:
parent
c7a3fec5be
commit
c56a79ad06
@ -1576,6 +1576,13 @@ VOID WINAPI GlobalMemoryStatus(
|
||||
/* FIXME: we should track down all the already allocated VM pages and substract them, for now arbitrarily remove 64KB so that it matches NT */
|
||||
lpmem->dwAvailVirtual = lpmem->dwTotalVirtual-64*1024;
|
||||
memcpy(&cached_memstatus,lpmem,sizeof(MEMORYSTATUS));
|
||||
|
||||
/* it appears some memory display programs want to divide by these values */
|
||||
if(lpmem->dwTotalPageFile==0)
|
||||
lpmem->dwTotalPageFile++;
|
||||
|
||||
if(lpmem->dwAvailPageFile==0)
|
||||
lpmem->dwAvailPageFile++;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user