[Kernel] Check for null hmodule_ptr in XexLoadImage
This commit is contained in:
parent
a867320a87
commit
c430a1748a
|
@ -98,6 +98,10 @@ dword_result_t xeXexLoadImage(
|
||||||
bool isFromMemory) {
|
bool isFromMemory) {
|
||||||
X_STATUS result = X_STATUS_NO_SUCH_FILE;
|
X_STATUS result = X_STATUS_NO_SUCH_FILE;
|
||||||
|
|
||||||
|
if (!hmodule_ptr) {
|
||||||
|
return X_ERROR_INVALID_PARAMETER;
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t hmodule = 0;
|
uint32_t hmodule = 0;
|
||||||
auto module = kernel_state()->GetModule(module_name.value());
|
auto module = kernel_state()->GetModule(module_name.value());
|
||||||
if (module) {
|
if (module) {
|
||||||
|
|
Loading…
Reference in New Issue