avoid bogus warning
authornotaz <notasas@gmail.com>
Sun, 9 Dec 2012 17:26:15 +0000 (19:26 +0200)
committernotaz <notasas@gmail.com>
Sun, 9 Dec 2012 17:26:15 +0000 (19:26 +0200)
libpcsxcore/psxmem.c

index db902b0..27663f1 100644 (file)
@@ -55,7 +55,7 @@ void *psxMap(unsigned long addr, size_t size, int is_fixed,
        if (ret == MAP_FAILED)
                return NULL;
 
-       if (ret != req)
+       if (req != NULL && ret != req)
                SysMessage("psxMap: warning: wanted to map @%p, got %p\n",
                        req, ret);