DrChat's fix for xex header values.

This commit is contained in:
Ben Vanik 2015-06-28 14:53:58 -07:00
parent d0713708e2
commit 7de9be4ef6
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ X_STATUS XUserModule::GetOptHeader(uint8_t* membase, const xex2_header* header,
break; break;
default: default:
// Data stored at offset to header. // 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; opt_header.offset;
break; break;
} }