From ae0fb21f086c44f748dad1af7f5fb8f91abdb45d Mon Sep 17 00:00:00 2001 From: Sajid Date: Mon, 30 Sep 2024 09:43:50 +0600 Subject: [PATCH] Fix xex header parser --- PowerUtils/xex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerUtils/xex.h b/PowerUtils/xex.h index eb82e54..eb0d34e 100644 --- a/PowerUtils/xex.h +++ b/PowerUtils/xex.h @@ -144,7 +144,7 @@ inline static const T* Xex2FindOptionalHeader(const void* base, const XEX_OPTION { if (headers[i].Type == (uint32_t)type) { - if ((type & 0xFF) == 1) + if ((type & 0xFF) == 0) { return reinterpret_cast(&headers[i].Address); }