From cb99c9fc4a7d96e6119aca9bf05db56c66f40211 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 18 Oct 2015 12:53:18 -0700 Subject: [PATCH] Prevent a warning when loading some utility mods. --- Core/HLE/sceUtility.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Core/HLE/sceUtility.cpp b/Core/HLE/sceUtility.cpp index 9cab4e7a95..ddbccadb63 100644 --- a/Core/HLE/sceUtility.cpp +++ b/Core/HLE/sceUtility.cpp @@ -293,7 +293,11 @@ static u32 sceUtilityLoadModule(u32 module) { u32 allocSize = info->size; char name[64]; snprintf(name, sizeof(name), "UtilityModule/%x", module); - currentlyLoadedModules[module] = userMemory.Alloc(allocSize, false, name); + if (allocSize != 0) { + currentlyLoadedModules[module] = userMemory.Alloc(allocSize, false, name); + } else { + currentlyLoadedModules[module] = 0; + } // TODO: Each module has its own timing, technically, but this is a low-end. if (module == 0x3FF)