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 function in loading methods for x64 .
This commit is contained in:
parent
767264156f
commit
47bc3f1872
1 changed files with 4 additions and 4 deletions
|
@ -153,10 +153,10 @@ void CLoading::Load()
|
|||
|
||||
errstream << "Initializing mix files" << std::endl;
|
||||
errstream.flush();
|
||||
MEMORYSTATUS ms;
|
||||
ms.dwLength = sizeof(MEMORYSTATUS);
|
||||
GlobalMemoryStatus(&ms);
|
||||
int cs = ms.dwAvailPhys + ms.dwAvailPageFile;
|
||||
MEMORYSTATUSEX ms;
|
||||
ms.dwLength = sizeof(ms);
|
||||
GlobalMemoryStatusEx(&ms);
|
||||
int cs = ms.ullAvailPhys + ms.ullAvailPageFile;
|
||||
|
||||
m_progress.SetPos(10);
|
||||
UpdateWindow();
|
||||
|
|
Loading…
Add table
Reference in a new issue