Assign XModule path on load rather than in the constructor

This commit is contained in:
Dr. Chat
2015-12-28 13:25:04 -06:00
committed by Ben Vanik
parent c242a01043
commit 4e7dfa477b
6 changed files with 17 additions and 13 deletions

View File

@@ -18,15 +18,11 @@
namespace xe {
namespace kernel {
XModule::XModule(KernelState* kernel_state, ModuleType module_type,
const std::string& path)
XModule::XModule(KernelState* kernel_state, ModuleType module_type)
: XObject(kernel_state, kTypeModule),
module_type_(module_type),
path_(path),
processor_module_(nullptr),
hmodule_ptr_(0) {
name_ = NameFromPath(path);
// Loader data (HMODULE)
hmodule_ptr_ = memory()->SystemHeapAlloc(sizeof(X_LDR_DATA_TABLE_ENTRY));