mirror of
https://github.com/wiiu-env/EnvironmentLoader.git
synced 2024-12-29 06:22:01 +01:00
Make sure to init moduleInfoPtr
This commit is contained in:
parent
35b8c0eeb7
commit
b5f62f552d
@ -366,6 +366,7 @@ void LoadAndRunModule(std::string_view filepath, std::string_view environment_pa
|
|||||||
|
|
||||||
auto moduleInfo = std::move(*moduleInfoOpt);
|
auto moduleInfo = std::move(*moduleInfoOpt);
|
||||||
auto moduleInfoPtr = (module_information_t *) moduleInfo.data();
|
auto moduleInfoPtr = (module_information_t *) moduleInfo.data();
|
||||||
|
*moduleInfoPtr = {};
|
||||||
|
|
||||||
// Frees automatically, must not survive the heapWrapper.
|
// Frees automatically, must not survive the heapWrapper.
|
||||||
auto moduleData = ModuleDataFactory::load(reader, *heapWrapperOpt, moduleInfoPtr->trampolines, sizeof(moduleInfoPtr->trampolines) / sizeof(moduleInfoPtr->trampolines[0]));
|
auto moduleData = ModuleDataFactory::load(reader, *heapWrapperOpt, moduleInfoPtr->trampolines, sizeof(moduleInfoPtr->trampolines) / sizeof(moduleInfoPtr->trampolines[0]));
|
||||||
|
Loading…
Reference in New Issue
Block a user