mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-04-30 17:11:40 -04:00
fixed memory query issue for x64 system .
This commit is contained in:
parent
3888315458
commit
f0a578ee9e
1 changed files with 6 additions and 6 deletions
|
@ -482,10 +482,10 @@ void CLoading::Load()
|
|||
// InitPics loads all graphics except terrain graphics!
|
||||
void CLoading::InitPics(CProgressCtrl* prog)
|
||||
{
|
||||
MEMORYSTATUS ms;
|
||||
ms.dwLength = sizeof(MEMORYSTATUS);
|
||||
GlobalMemoryStatus(&ms);
|
||||
int cs = ms.dwAvailPhys + ms.dwAvailPageFile;
|
||||
MEMORYSTATUSEX ms;
|
||||
ms.dwLength = sizeof(MEMORYSTATUSEX);
|
||||
GlobalMemoryStatusEx(&ms);
|
||||
auto cs = ms.ullAvailPhys + ms.ullAvailPageFile;
|
||||
|
||||
errstream << "InitPics() called. Available memory: " << cs << endl;
|
||||
errstream.flush();
|
||||
|
@ -645,8 +645,8 @@ void CLoading::InitPics(CProgressCtrl* prog)
|
|||
|
||||
}
|
||||
ms.dwLength = sizeof(MEMORYSTATUS);
|
||||
GlobalMemoryStatus(&ms);
|
||||
cs = ms.dwAvailPhys + ms.dwAvailPageFile;
|
||||
GlobalMemoryStatusEx(&ms);
|
||||
cs = ms.ullAvailPhys + ms.ullAvailPageFile;
|
||||
|
||||
int piccount = pics.size();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue