windows: ACH: reintepret_cast the result buffer

This commit is contained in:
Tom Dewey 2024-08-09 16:09:55 +01:00 committed by Tom Dewey
parent 45ed6d4018
commit 180ff193aa

View file

@ -149,7 +149,7 @@ struct AcceleratedCryptographicHash::impl {
return {}; return {};
} else { } else {
// No cleanup required, as the dtor of this class will do so. // No cleanup required, as the dtor of this class will do so.
auto returnArray = QByteArray(pbHash, cbHash); auto returnArray = QByteArray(reinterpret_cast<char *>(pbHash), cbHash);
return returnArray; return returnArray;
} }
} }