diff --git a/src/xenia/kernel/objects/xuser_module.cc b/src/xenia/kernel/objects/xuser_module.cc index 779502524..91b8ffe0a 100644 --- a/src/xenia/kernel/objects/xuser_module.cc +++ b/src/xenia/kernel/objects/xuser_module.cc @@ -177,7 +177,7 @@ X_STATUS XUserModule::GetOptHeader(uint8_t* membase, const xex2_header* header, break; default: // Data stored at offset to header. - field_value = uint32_t((uint8_t*)&header->headers[0] - membase) + + field_value = uint32_t((uint8_t*)header - membase) + opt_header.offset; break; }