From 78a6c4288ad5ea39c047afebcb7f52861725c22a Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 11 Dec 2020 15:19:14 +0100 Subject: [PATCH] Fix loading .rpx when a fileoffset/filesize is provided --- source/ios_mcp/source/mcp_loadfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ios_mcp/source/mcp_loadfile.c b/source/ios_mcp/source/mcp_loadfile.c index 76dfc1c..00d9934 100644 --- a/source/ios_mcp/source/mcp_loadfile.c +++ b/source/ios_mcp/source/mcp_loadfile.c @@ -139,7 +139,7 @@ static int MCP_LoadCustomFile(int target, char *path, int filesize, int fileoffs DEBUG_FUNCTION_LINE("Load custom path \"%s\"\n", filepath); - if (filesize > 0 && (pos + fileoffset > filesize)) { + if (filesize > 0 && (pos > filesize)) { return 0; }