CryptCreateHash: Set returned hash handle to zero in case of failure.
This commit is contained in:
parent
626aa3366f
commit
2f2f3a1d13
|
@ -677,6 +677,7 @@ BOOL WINAPI CryptCreateHash (HCRYPTPROV hProv, ALG_ID Algid, HCRYPTKEY hKey,
|
||||||
|
|
||||||
/* CSP error! */
|
/* CSP error! */
|
||||||
CRYPT_Free(hash);
|
CRYPT_Free(hash);
|
||||||
|
*phHash = 0;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue