From 0ee454f44bff02433e138d50b16c265f2b124cdc Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Wed, 5 Jul 2017 22:44:40 +0300 Subject: [PATCH] vm: decommit by exec_addr --- rpcs3/Emu/Memory/vm.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpcs3/Emu/Memory/vm.cpp b/rpcs3/Emu/Memory/vm.cpp index 4bbcb96de2..04f3a25a3e 100644 --- a/rpcs3/Emu/Memory/vm.cpp +++ b/rpcs3/Emu/Memory/vm.cpp @@ -461,8 +461,10 @@ namespace vm #ifdef _WIN32 verify(__func__), ::VirtualFree(real_addr, size, MEM_DECOMMIT); + verify(__func__), ::VirtualFree(exec_addr, size, MEM_DECOMMIT); #else verify(__func__), ::mmap(real_addr, size, PROT_NONE, MAP_FIXED | MAP_ANON | MAP_PRIVATE, -1, 0); + verify(__func__), ::mmap(exec_addr, size, PROT_NONE, MAP_FIXED | MAP_ANON | MAP_PRIVATE, -1, 0); #endif }