projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6937c35
)
Fix call to GlobalMemoryStatusEx in w32.c
author
Eli Zaretskii
<eliz@gnu.org>
Tue, 6 Nov 2018 15:49:58 +0000
(17:49 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Tue, 6 Nov 2018 15:49:58 +0000
(17:49 +0200)
* src/w32.c (system_process_attributes): Initialize the size
of the data structure passed to GlobalMemoryStatusEx,
otherwise it fails.
src/w32.c
patch
|
blob
|
history
diff --git
a/src/w32.c
b/src/w32.c
index 5ac66181403aca4c2458332c566bf4958ef4775c..b89e5104dc0237817eb065df606f5b8ebd7d197e 100644
(file)
--- a/
src/w32.c
+++ b/
src/w32.c
@@
-7157,6
+7157,7
@@
system_process_attributes (Lisp_Object pid)
code_convert_string_norecord (tem, Vlocale_coding_system, 0)),
attrs);
+ memstex.dwLength = sizeof (memstex);
if (global_memory_status_ex (&memstex))
#if __GNUC__ || (defined (_MSC_VER) && _MSC_VER >= 1300)
totphys = memstex.ullTotalPhys / 1024.0;