]> 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)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 11 Sep 2010 00:14:45 +0000 (02:14 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10455 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e31ea19a584eb7675ebb9133d665d44ef9438a3e

zone.c

diff --git a/zone.c b/zone.c
index 296e85507f69c875699a37f31572ed59719d597a..43774da6468fbaaeeec60ec8993944a245772ed7 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));