Commit 2f2f3a1d authored by Michael Jung's avatar Michael Jung Committed by Alexandre Julliard

CryptCreateHash: Set returned hash handle to zero in case of failure.

parent 626aa336
......@@ -677,6 +677,7 @@ BOOL WINAPI CryptCreateHash (HCRYPTPROV hProv, ALG_ID Algid, HCRYPTKEY hKey,
/* CSP error! */
CRYPT_Free(hash);
*phHash = 0;
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment