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

oldstable
Michael Jung 2004-10-27 21:15:10 +00:00 committed by Alexandre Julliard
parent 626aa3366f
commit 2f2f3a1d13
1 changed files with 1 additions and 0 deletions

View File

@ -677,6 +677,7 @@ BOOL WINAPI CryptCreateHash (HCRYPTPROV hProv, ALG_ID Algid, HCRYPTKEY hKey,
/* CSP error! */
CRYPT_Free(hash);
*phHash = 0;
return FALSE;
}