src/cpuinfo/SDL_cpuinfo.c
changeset 7889 9ec71e56071c
parent 7860 2b0bcdea3a79
child 8093 b43765095a6f
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Wed Oct 23 16:33:15 2013 -0700
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Wed Oct 23 19:52:14 2013 -0400
     1.3 @@ -642,6 +642,7 @@
     1.4  #ifdef __WIN32__
     1.5          if (SDL_SystemRAM <= 0) {
     1.6              MEMORYSTATUSEX stat;
     1.7 +            stat.dwLength = sizeof(stat);
     1.8              if (GlobalMemoryStatusEx(&stat)) {
     1.9                  SDL_SystemRAM = (int)(stat.ullTotalPhys / (1024 * 1024));
    1.10              }