From e499f9052af95f17ecd38e0422b49fee1d9c8222 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 5 Aug 2024 13:08:42 +1000 Subject: [PATCH] MemMap: Fix inverted condition --- src/common/memmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/memmap.cpp b/src/common/memmap.cpp index bcd73d262..10d38c068 100644 --- a/src/common/memmap.cpp +++ b/src/common/memmap.cpp @@ -644,7 +644,7 @@ void* MemMap::CreateSharedMemory(const char* name, size_t size, Error* error) } // we're not going to be opening this mapping in other processes, so remove the file - if (!is_anonymous) + if (is_anonymous) shm_unlink(name); #endif