Actual write the cached struct in GlobalMemoryStatus.
This commit is contained in:
parent
a99fa8601b
commit
fddbcf3c8d
|
@ -1515,10 +1515,10 @@ VOID WINAPI GlobalMemoryStatus(
|
||||||
lpmem->dwAvailVirtual = lpmem->dwAvailPhys+lpmem->dwAvailPageFile;
|
lpmem->dwAvailVirtual = lpmem->dwAvailPhys+lpmem->dwAvailPageFile;
|
||||||
lpmem->dwMemoryLoad = (lpmem->dwTotalVirtual-lpmem->dwAvailVirtual)
|
lpmem->dwMemoryLoad = (lpmem->dwTotalVirtual-lpmem->dwAvailVirtual)
|
||||||
/ (lpmem->dwTotalVirtual / 100);
|
/ (lpmem->dwTotalVirtual / 100);
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
} else
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
/* FIXME: should do something for other systems */
|
/* FIXME: should do something for other systems */
|
||||||
lpmem->dwMemoryLoad = 0;
|
lpmem->dwMemoryLoad = 0;
|
||||||
lpmem->dwTotalPhys = 16*1024*1024;
|
lpmem->dwTotalPhys = 16*1024*1024;
|
||||||
|
@ -1528,6 +1528,8 @@ VOID WINAPI GlobalMemoryStatus(
|
||||||
lpmem->dwTotalVirtual = 32*1024*1024;
|
lpmem->dwTotalVirtual = 32*1024*1024;
|
||||||
lpmem->dwAvailVirtual = 32*1024*1024;
|
lpmem->dwAvailVirtual = 32*1024*1024;
|
||||||
}
|
}
|
||||||
|
memcpy(&cached_memstatus,lpmem,sizeof(MEMORYSTATUS));
|
||||||
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* A20Proc16 (KERNEL.165)
|
* A20Proc16 (KERNEL.165)
|
||||||
|
|
Loading…
Reference in New Issue