diff --git a/src/xenia/kernel/xboxkrnl/xboxkrnl_rtl.cc b/src/xenia/kernel/xboxkrnl/xboxkrnl_rtl.cc index f34cec4f6..d057ebe48 100644 --- a/src/xenia/kernel/xboxkrnl/xboxkrnl_rtl.cc +++ b/src/xenia/kernel/xboxkrnl/xboxkrnl_rtl.cc @@ -503,6 +503,10 @@ pointer_result_t RtlImageXexHeaderField_entry(pointer_t xex_header, uint32_t field_value = 0; uint32_t field = field_dword; // VS acts weird going from dword_t -> enum + if (!xex_header) { + return field_value; + } + UserModule::GetOptHeader(kernel_memory(), xex_header, xex2_header_keys(field), &field_value);