From 829f70dacdfd971a35dcdf6ec139e3a5d4332f3f Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 12 Apr 2014 13:09:33 -0700 Subject: [PATCH] Initialize textStart/textEnd for fake modules. Otherwise we try to unload random memory, sometimes this breaks weird things. --- Core/HLE/sceKernelModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 6331d5a924..8b91fde287 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -212,7 +212,7 @@ enum NativeModuleStatus { class Module : public KernelObject { public: - Module() : memoryBlockAddr(0), isFake(false) {} + Module() : textStart(0), textEnd(0), memoryBlockAddr(0), isFake(false) {} ~Module() { if (memoryBlockAddr) { userMemory.Free(memoryBlockAddr);