diff options
| author | Eli Zaretskii | 2018-11-06 17:49:58 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2018-11-06 17:49:58 +0200 |
| commit | aa556596fabe07af8ee33f59c6d3ec3b882f369e (patch) | |
| tree | 16c827b97878898116b71b3736edcd4209ef66bc /src | |
| parent | 6937c35d3260fe3fc32249313c7e9b6231cbd3dd (diff) | |
| download | emacs-aa556596fabe07af8ee33f59c6d3ec3b882f369e.tar.gz emacs-aa556596fabe07af8ee33f59c6d3ec3b882f369e.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -7157,6 +7157,7 @@ system_process_attributes (Lisp_Object pid) | |||
| 7157 | code_convert_string_norecord (tem, Vlocale_coding_system, 0)), | 7157 | code_convert_string_norecord (tem, Vlocale_coding_system, 0)), |
| 7158 | attrs); | 7158 | attrs); |
| 7159 | 7159 | ||
| 7160 | memstex.dwLength = sizeof (memstex); | ||
| 7160 | if (global_memory_status_ex (&memstex)) | 7161 | if (global_memory_status_ex (&memstex)) |
| 7161 | #if __GNUC__ || (defined (_MSC_VER) && _MSC_VER >= 1300) | 7162 | #if __GNUC__ || (defined (_MSC_VER) && _MSC_VER >= 1300) |
| 7162 | totphys = memstex.ullTotalPhys / 1024.0; | 7163 | totphys = memstex.ullTotalPhys / 1024.0; |