diff --git a/src/windows/acceleratedcryptographichash_cng.cpp b/src/windows/acceleratedcryptographichash_cng.cpp index 77e73b6..35f5161 100644 --- a/src/windows/acceleratedcryptographichash_cng.cpp +++ b/src/windows/acceleratedcryptographichash_cng.cpp @@ -16,7 +16,7 @@ struct AcceleratedCryptographicHash::impl { explicit impl(QCryptographicHash::Algorithm algo) { - if (method != QCryptographicHash::Sha256) + if (algo != QCryptographicHash::Sha256) throw std::runtime_error("Only sha256 implemented"); //open an algorithm handle