Use the guest copy of the xex header for guest code.

This commit is contained in:
Dr. Chat 2015-07-03 10:51:56 -05:00
parent 307feaf893
commit c32a94599e
1 changed files with 2 additions and 1 deletions

View File

@ -155,7 +155,8 @@ X_STATUS XUserModule::GetOptHeader(xe_xex2_header_keys key, void** out_ptr) {
X_STATUS XUserModule::GetOptHeader(xe_xex2_header_keys key,
uint32_t* out_header_guest_ptr) {
auto header = xex_module()->xex_header();
auto header =
memory()->TranslateVirtual<const xex2_header*>(guest_xex_header_);
if (!header) {
return X_STATUS_UNSUCCESSFUL;
}