diff --git a/core/document.cpp b/core/document.cpp index babcc4a3e76f68ab21b8960a20fac955cba75564..8c22ae48c771d834d6c36dfdaac354753beca1e4 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -382,9 +382,9 @@ qulonglong DocumentPrivate::getFreeMemory() return ( cachedValue = (1024 * memoryFree) ); #elif defined(Q_OS_WIN) - MEMORYSTATUS stat; + MEMORYSTATUSEX stat; - GlobalMemoryStatus (&stat); + GlobalMemoryStatusEx (&stat); return stat.ullAvailPhys; #else