Initialize textStart/textEnd for fake modules.

Otherwise we try to unload random memory, sometimes this breaks weird
things.
This commit is contained in:
Unknown W. Brackets
2014-04-12 13:09:33 -07:00
parent b4244fb4d9
commit 829f70dacd
+1 -1
View File
@@ -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);