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; } }