From f1590132f417547dc598a042bed4fb41b1951d4f Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 11 Sep 2010 00:20:09 +0000 Subject: [PATCH] fix an inverted return value git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10455 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=e31ea19a584eb7675ebb9133d665d44ef9438a3e --- zone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone.c b/zone.c index 296e8550..43774da6 100644 --- a/zone.c +++ b/zone.c @@ -891,7 +891,7 @@ void Memory_Init_Commands (void) Cvar_SetValueQuick(&sys_memsize_virtual, 8388608); // then improve status.dwLength = sizeof(status); - if(!GlobalMemoryStatusEx(&status)) + if(GlobalMemoryStatusEx(&status)) { Cvar_SetValueQuick(&sys_memsize_physical, status.ullTotalPhys / 1048576.0); Cvar_SetValueQuick(&sys_memsize_virtual, min(sys_memsize_virtual.value, status.ullTotalVirtual / 1048576.0)); -- 2.39.2