From 47bc3f1872676efc7d14c75f2099f7b309167e99 Mon Sep 17 00:00:00 2001 From: Zero Fanker Date: Wed, 5 Jun 2024 00:11:22 -0400 Subject: [PATCH] fixed memory query function in loading methods for x64 . --- MissionEditor/Loading.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MissionEditor/Loading.cpp b/MissionEditor/Loading.cpp index 5726fab..d6623a4 100644 --- a/MissionEditor/Loading.cpp +++ b/MissionEditor/Loading.cpp @@ -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();