Merge pull request #1287 from leoetlino/logic
loader: Fix boolean logic error
This commit is contained in:
commit
77f0295a04
@ -369,7 +369,7 @@ bool loadTitleExheaderInfo(u64 progId, ExHeader_Info *exheaderInfo)
|
|||||||
|
|
||||||
u64 fileSize;
|
u64 fileSize;
|
||||||
|
|
||||||
if(R_FAILED(IFile_GetSize(&file, &fileSize)) || fileSize != sizeof(ExHeader_Info) || fileSize != sizeof(ExHeader)) goto error;
|
if(R_FAILED(IFile_GetSize(&file, &fileSize)) || (fileSize != sizeof(ExHeader_Info) && fileSize != sizeof(ExHeader))) goto error;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
u64 total;
|
u64 total;
|
||||||
|
Reference in New Issue
Block a user