From e31ea19a584eb7675ebb9133d665d44ef9438a3e 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 --- zone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone.c b/zone.c index fb314e4b..7c601cf0 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