aboutsummaryrefslogblamecommitdiff
path: root/emulators/libretro-pcsx2/files/patch-common_include_Utilities_General.h
blob: 5a9326ab92fed74fcbb2084f82d6c29b4a373afd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                                       
--- common/include/Utilities/General.h.orig	2020-10-29 23:31:05 UTC
+++ common/include/Utilities/General.h
@@ -257,7 +257,7 @@ void MemProtectStatic(u8 (&arr)[size], const PageProte
 
 // Safe version of Munmap -- NULLs the pointer variable immediately after free'ing it.
 #define SafeSysMunmap(ptr, size) \
-    ((void)(HostSys::Munmap((uptr)(ptr), size), (ptr) = NULL))
+    ((void)(HostSys::Munmap((uptr)(ptr), size), (ptr) = 0))
 
 extern void InitCPUTicks();
 extern u64 GetTickFrequency();