[Kernel] Make XexUnloadImage fully release the image

Previously XexUnloadImage did not cleanup the image fully,
and if XexLoadImage was to be called again on the same module,
it was not initialized fully, leading to a crash when using it.
This commit is contained in:
Silent
2019-09-02 21:48:51 +02:00
committed by Rick Gibbed
parent 9d48e904da
commit 38bf6c8822
3 changed files with 37 additions and 1 deletions

View File

@@ -131,6 +131,8 @@ class KernelState {
void SetExecutableModule(object_ref<UserModule> module);
object_ref<UserModule> LoadUserModule(const char* name,
bool call_entry = true);
void UnloadUserModule(const object_ref<UserModule>& module,
bool call_entry = true);
object_ref<KernelModule> GetKernelModule(const char* name);
template <typename T>