Fix xex header parser

This commit is contained in:
Sajid 2024-09-30 09:43:50 +06:00
parent 3a8c9941f7
commit ae0fb21f08

View File

@ -144,7 +144,7 @@ inline static const T* Xex2FindOptionalHeader(const void* base, const XEX_OPTION
{ {
if (headers[i].Type == (uint32_t)type) if (headers[i].Type == (uint32_t)type)
{ {
if ((type & 0xFF) == 1) if ((type & 0xFF) == 0)
{ {
return reinterpret_cast<const T*>(&headers[i].Address); return reinterpret_cast<const T*>(&headers[i].Address);
} }