mirror of
https://github.com/martravi/wiiqt6.git
synced 2025-01-12 12:29:06 +01:00
*nandBin:: fix return value for failed reading of keys
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@94 389f4c8b-5dfe-645f-db0e-df882bc27289
This commit is contained in:
parent
a9bde8574e
commit
c744b29d04
@ -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…
x
Reference in New Issue
Block a user