mirror of
https://github.com/wiiu-env/MochaPayload.git
synced 2024-11-25 17:26:53 +01:00
Fix loading .rpx when a fileoffset/filesize is provided
This commit is contained in:
parent
48c093162b
commit
78a6c4288a
@ -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);
|
DEBUG_FUNCTION_LINE("Load custom path \"%s\"\n", filepath);
|
||||||
|
|
||||||
if (filesize > 0 && (pos + fileoffset > filesize)) {
|
if (filesize > 0 && (pos > filesize)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user