diff --git a/Core/MIPS/MIPSAnalyst.cpp b/Core/MIPS/MIPSAnalyst.cpp index 2a56679f2f..913e7099eb 100644 --- a/Core/MIPS/MIPSAnalyst.cpp +++ b/Core/MIPS/MIPSAnalyst.cpp @@ -1287,7 +1287,9 @@ skip: mf.hardcoded = false; if (fscanf(file, "%llx:%d = %63s\n", &mf.hash, &mf.size, mf.name) < 3) { char temp[1024]; - fgets(temp, 1024, file); + if (!fgets(temp, 1024, file)) { + WARN_LOG(LOADER, "Could not read from hash map: %s", filename.c_str()); + } continue; }