mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
エラーチェック抜けがあったのでチェックを追加
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2386 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
e85b9529e1
commit
76f43c3d2e
@ -858,6 +858,11 @@ static HotSwState ReadImageReturnErrorCode(void* dest, s32 offset, s32 length, v
|
||||
remain_length = (u32)(length % 512);
|
||||
retval = ReadPageGame((CardBootData*)arg, (u32)offset, dest, (u32)(length - remain_length));
|
||||
|
||||
if (retval != HOTSW_SUCCESS)
|
||||
{
|
||||
return retval;
|
||||
}
|
||||
|
||||
// ケツがページ途中
|
||||
if( remain_length ){
|
||||
dest = (u8*)dest + (length - remain_length);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user