From c7eb542173497fa31f57f2ebf7163aebbabf6d26 Mon Sep 17 00:00:00 2001 From: George Wu Date: Thu, 21 Feb 2019 13:49:40 +0100 Subject: [PATCH] Fixed calling error --- src/lib/kawashima/hca/CHcaCipherConverter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/kawashima/hca/CHcaCipherConverter.cpp b/src/lib/kawashima/hca/CHcaCipherConverter.cpp index 23299ed..f836089 100644 --- a/src/lib/kawashima/hca/CHcaCipherConverter.cpp +++ b/src/lib/kawashima/hca/CHcaCipherConverter.cpp @@ -159,7 +159,7 @@ CGSS_NS_BEGIN cipherFrom->Decrypt(blockBuffer, validDataSize); // Check magic piece of plain text. - CHcaData data(blockBuffer, hcaInfo.blockSize); + CHcaData data(blockBuffer, hcaInfo.blockSize, hcaInfo.blockSize); const auto magic = data.GetBit(16); if (magic != 0xffff) { char numberBuffer[20] = {0};