diff --git a/ufs/ufsd/src/apfs/apfsencryption.cpp b/ufs/ufsd/src/apfs/apfsencryption.cpp index ad734e5..f00bf90 100644 --- a/ufs/ufsd/src/apfs/apfsencryption.cpp +++ b/ufs/ufsd/src/apfs/apfsencryption.cpp @@ -434,9 +434,9 @@ static int GetDerivedKey( { CHECK_CALL_LOG(Cf->Hmac(I_CIPHER_SHA256, Pass, PassSize, mac, sizeof(mac), mac), Log); // due to hLen % 8 == 0 - *k ^= *m, - *(k + 1) ^= *(m + 1), - *(k + 2) ^= *(m + 2), + *k ^= *m; + *(k + 1) ^= *(m + 1); + *(k + 2) ^= *(m + 2); *(k + 3) ^= *(m + 3); } diff --git a/ufs/ufsd/src/apfs/apfssuper.cpp b/ufs/ufsd/src/apfs/apfssuper.cpp index 3330997..5be27a9 100644 --- a/ufs/ufsd/src/apfs/apfssuper.cpp +++ b/ufs/ufsd/src/apfs/apfssuper.cpp @@ -594,7 +594,7 @@ UINT64 CApfsSuperBlock::CreateFSum( IN size_t Size ) { - register unsigned int* p = reinterpret_cast(pData); + unsigned int* p = reinterpret_cast(pData); Size /= 4; volatile UINT64 sum1 = 0;