fixed memory query function in loading methods for x64 .

This commit is contained in:
Zero Fanker 2024-06-05 00:11:22 -04:00
parent 767264156f
commit 47bc3f1872

View file

@ -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();