From b9debbaa633ab7ba298f6dac801a92c245f8af6b Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Tue, 1 Sep 2015 17:03:40 -0700 Subject: [PATCH] Fixing section lookup when the name is 8 characters. --- src/xenia/kernel/objects/xuser_module.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/kernel/objects/xuser_module.cc b/src/xenia/kernel/objects/xuser_module.cc index 4ec106bcb..5e3cc148e 100644 --- a/src/xenia/kernel/objects/xuser_module.cc +++ b/src/xenia/kernel/objects/xuser_module.cc @@ -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;