From 8ad120c9c4dca424feac32098cb4af6a2c8f641f Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 9 Dec 2012 19:26:15 +0200 Subject: [PATCH] avoid bogus warning --- libpcsxcore/psxmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpcsxcore/psxmem.c b/libpcsxcore/psxmem.c index db902b04..27663f1f 100644 --- a/libpcsxcore/psxmem.c +++ b/libpcsxcore/psxmem.c @@ -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); -- 2.39.5