mirror of
https://github.com/martravi/wiiqt.git
synced 2024-11-22 09:09:18 +01:00
*nandBin:: fix return value for failed reading of keys
This commit is contained in:
parent
34a4f8876c
commit
5e765319d2
@ -608,7 +608,7 @@ const QByteArray NandBin::Keys()
|
|||||||
if( sl == -1 )
|
if( sl == -1 )
|
||||||
{
|
{
|
||||||
emit SendError( tr( "Error getting path of keys.bin" ) );
|
emit SendError( tr( "Error getting path of keys.bin" ) );
|
||||||
return false;
|
return ret;
|
||||||
}
|
}
|
||||||
keyPath.resize( sl + 1 );
|
keyPath.resize( sl + 1 );
|
||||||
keyPath += "keys.bin";
|
keyPath += "keys.bin";
|
||||||
@ -621,7 +621,7 @@ const QByteArray NandBin::Keys()
|
|||||||
if( !f.isOpen() )
|
if( !f.isOpen() )
|
||||||
{
|
{
|
||||||
emit SendError( tr( "Tried to read keys from unopened file" ) );
|
emit SendError( tr( "Tried to read keys from unopened file" ) );
|
||||||
return false;
|
return ret;
|
||||||
}
|
}
|
||||||
f.seek( 0x21000000 );
|
f.seek( 0x21000000 );
|
||||||
ret = f.read( 0x400 );
|
ret = f.read( 0x400 );
|
||||||
@ -629,7 +629,7 @@ const QByteArray NandBin::Keys()
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
emit SendError( tr( "Tried to read keys for unknown dump type" ) );
|
emit SendError( tr( "Tried to read keys for unknown dump type" ) );
|
||||||
return QByteArray();
|
return ret;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if( ret.size() != 0x400 )
|
if( ret.size() != 0x400 )
|
||||||
|
Loading…
Reference in New Issue
Block a user