From c405d92c41ddf891615c6ce3ac1c529c381695c5 Mon Sep 17 00:00:00 2001 From: Chanwoong Kim Date: Sat, 7 Dec 2013 16:07:47 +0900 Subject: [PATCH] fixed issue 6852. --- Source/Core/DiscIO/Src/VolumeCreator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DiscIO/Src/VolumeCreator.cpp b/Source/Core/DiscIO/Src/VolumeCreator.cpp index df2e44aaa5..4a47d79b72 100644 --- a/Source/Core/DiscIO/Src/VolumeCreator.cpp +++ b/Source/Core/DiscIO/Src/VolumeCreator.cpp @@ -196,10 +196,10 @@ static IVolume* CreateVolumeFromCryptedWiiImage(IBlobReader& _rReader, u32 _Part bool usingKoreanKey = false; // 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 // Otherwise it is zero - if (Korean && Reader.Read8(0x501f1) == 1) + if (Korean && Reader.Read8(rPartition.Offset + 0x1f1) == 1) usingKoreanKey = true; aes_context AES_ctx;