May 27, 2026
10:46 a.m.
Hans Leidekker (@hans) commented about dlls/wbemprox/builtin.c:
status.dwLength = sizeof(status); if (!GlobalMemoryStatusEx( &status )) return 1024 * 1024 * 1024; - return status.ullTotalVirtual; + return status.ullTotalPageFile;
ullTotalVirtual is supposed to be 2 or 3GB for 32-bit processes. How does this cause overflow? If we're switching to ullTotalPageFile, shouldn't we add the amount of physical memory (ullTotalPhys)? That's how MSDN defines TotalVirtualMemorySize. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11007#note_141414