fixed issue 6852.

This commit is contained in:
Chanwoong Kim 2013-12-07 16:07:47 +09:00
parent 4867937355
commit c405d92c41
1 changed files with 2 additions and 2 deletions

View File

@ -196,10 +196,10 @@ static IVolume* CreateVolumeFromCryptedWiiImage(IBlobReader& _rReader, u32 _Part
bool usingKoreanKey = false; bool usingKoreanKey = false;
// Issue: 6813 // Issue: 6813
// Magic value is at 0x501f1 (1byte) // Magic value is at partition's offset + 0x1f1 (1byte)
// If encrypted with the Korean key, the magic value would be 1 // If encrypted with the Korean key, the magic value would be 1
// Otherwise it is zero // Otherwise it is zero
if (Korean && Reader.Read8(0x501f1) == 1) if (Korean && Reader.Read8(rPartition.Offset + 0x1f1) == 1)
usingKoreanKey = true; usingKoreanKey = true;
aes_context AES_ctx; aes_context AES_ctx;