Commit aa556596 authored by Eli Zaretskii's avatar Eli Zaretskii

Fix call to GlobalMemoryStatusEx in w32.c

* src/w32.c (system_process_attributes): Initialize the size
of the data structure passed to GlobalMemoryStatusEx,
otherwise it fails.
parent 6937c35d
......@@ -7157,6 +7157,7 @@ system_process_attributes (Lisp_Object pid)
code_convert_string_norecord (tem, Vlocale_coding_system, 0)),
memstex.dwLength = sizeof (memstex);
if (global_memory_status_ex (&memstex))
#if __GNUC__ || (defined (_MSC_VER) && _MSC_VER >= 1300)
totphys = memstex.ullTotalPhys / 1024.0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment