]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix an inverted return value
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 11 Sep 2010 00:20:09 +0000 (00:20 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 11 Sep 2010 00:20:09 +0000 (00:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10455 d7cf8633-e32d-0410-b094-e92efae38249

zone.c

diff --git a/zone.c b/zone.c
index fb314e4b535375280c024f7c41f7b7b940b60af3..7c601cf0918986fd3aec2590ea740b5ee9813d79 100644 (file)
--- 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));