From 180ff193aaa3d9432760b3f45cc850aadab77052 Mon Sep 17 00:00:00 2001 From: Tom Dewey Date: Fri, 9 Aug 2024 16:09:55 +0100 Subject: [PATCH] windows: ACH: reintepret_cast the result buffer --- src/windows/acceleratedcryptographichash_cng.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/acceleratedcryptographichash_cng.cpp b/src/windows/acceleratedcryptographichash_cng.cpp index 6e81b31..dd28dc1 100644 --- a/src/windows/acceleratedcryptographichash_cng.cpp +++ b/src/windows/acceleratedcryptographichash_cng.cpp @@ -149,7 +149,7 @@ struct AcceleratedCryptographicHash::impl { return {}; } else { // No cleanup required, as the dtor of this class will do so. - auto returnArray = QByteArray(pbHash, cbHash); + auto returnArray = QByteArray(reinterpret_cast(pbHash), cbHash); return returnArray; } }