Commit fddbcf3c authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Actual write the cached struct in GlobalMemoryStatus.

parent a99fa860
...@@ -1515,18 +1515,20 @@ VOID WINAPI GlobalMemoryStatus( ...@@ -1515,18 +1515,20 @@ 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 */ {
lpmem->dwMemoryLoad = 0; /* FIXME: should do something for other systems */
lpmem->dwTotalPhys = 16*1024*1024; lpmem->dwMemoryLoad = 0;
lpmem->dwAvailPhys = 16*1024*1024; lpmem->dwTotalPhys = 16*1024*1024;
lpmem->dwTotalPageFile = 16*1024*1024; lpmem->dwAvailPhys = 16*1024*1024;
lpmem->dwAvailPageFile = 16*1024*1024; lpmem->dwTotalPageFile = 16*1024*1024;
lpmem->dwTotalVirtual = 32*1024*1024; lpmem->dwAvailPageFile = 16*1024*1024;
lpmem->dwAvailVirtual = 32*1024*1024; lpmem->dwTotalVirtual = 32*1024*1024;
lpmem->dwAvailVirtual = 32*1024*1024;
}
memcpy(&cached_memstatus,lpmem,sizeof(MEMORYSTATUS));
} }
/*********************************************************************** /***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment