Fixing section lookup when the name is 8 characters.
This commit is contained in:
parent
f5e374f9b5
commit
b9debbaa63
|
@ -175,7 +175,7 @@ X_STATUS XUserModule::GetSection(const char* name, uint32_t* out_section_data,
|
|||
uint32_t count = (resource_header->size - 4) / 16;
|
||||
for (uint32_t i = 0; i < count; i++) {
|
||||
auto& res = resource_header->resources[i];
|
||||
if (strcmp(name, res.name) == 0) {
|
||||
if (std::strncmp(name, res.name, 8) == 0) {
|
||||
// Found!
|
||||
*out_section_data = res.address;
|
||||
*out_section_size = res.size;
|
||||
|
|
Loading…
Reference in New Issue