Fix as @hrydgard suggest

This commit is contained in:
sum2012
2022-10-07 06:01:53 +08:00
parent 776e72715f
commit d716b74480
3 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -1144,8 +1144,7 @@ static int gzipDecompress(u8 *OutBuffer, int OutBufferLength, u8 *InBuffer) {
}
static PSPModule *__KernelLoadELFFromPtr(const u8 *ptr, size_t elfSize, u32 loadAddress, bool fromTop, std::string *error_string, u32 *magic, u32 &error) {
u32 crc = crc32(0, Z_NULL, 0);
crc = crc32(crc, ptr, elfSize);
u32 crc = crc32(0, ptr, elfSize);
PSPModule *module = new PSPModule();
kernelObjects.Create(module);
loadedModules.insert(module->GetUID());