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@2943 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
7d6286c4da
commit
dcb8e50537
@ -399,7 +399,7 @@ BOOL DHT_PrepareDatabaseAdHoc(DHTFileAdHoc* pDHT, FSFile* fp, s32 maxLength)
|
||||
OS_TPrintf("Cannot read the DHT header (result=%d). [AdHoc]\n", result);
|
||||
return FALSE;
|
||||
}
|
||||
// 拡張データベース読み込み
|
||||
// 個別対応データベース読み込み
|
||||
PROFILE_COUNT();
|
||||
length = (s32)DHT_GetDatabaseAdHocLength(pDHT);
|
||||
if ( length < sizeof(DHTHeader) )
|
||||
@ -407,7 +407,7 @@ BOOL DHT_PrepareDatabaseAdHoc(DHTFileAdHoc* pDHT, FSFile* fp, s32 maxLength)
|
||||
OS_TPrintf("Invalid DHT header. [AdHoc]\n");
|
||||
return FALSE;
|
||||
}
|
||||
if ( length < maxLength )
|
||||
if ( length > maxLength )
|
||||
{
|
||||
OS_TPrintf("Too large size specified in the header.\n");
|
||||
return FALSE;
|
||||
@ -426,7 +426,7 @@ BOOL DHT_PrepareDatabaseAdHoc(DHTFileAdHoc* pDHT, FSFile* fp, s32 maxLength)
|
||||
PROFILE_COUNT();
|
||||
}
|
||||
|
||||
// 拡張データベースの検証
|
||||
// 個別対応データベースの検証
|
||||
PROFILE_COUNT();
|
||||
result = DHT_CheckDatabaseAdHoc(pDHT);
|
||||
|
||||
@ -443,7 +443,7 @@ BOOL DHT_PrepareDatabaseAdHoc(DHTFileAdHoc* pDHT, FSFile* fp, s32 maxLength)
|
||||
}
|
||||
|
||||
/*
|
||||
ROMヘッダに対応する拡張データベースを手に入れる
|
||||
ROMヘッダに対応する個別対応データベースを手に入れる
|
||||
*/
|
||||
static const DHTDatabaseAdHoc* DHT_GetDatabaseAdHoc(const DHTFileAdHoc* pDHT, const ROM_Header_Short* pROMHeader)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user