From 2f2f3a1d132410af58523169161cf7b2689f5440 Mon Sep 17 00:00:00 2001 From: Michael Jung Date: Wed, 27 Oct 2004 21:15:10 +0000 Subject: [PATCH] CryptCreateHash: Set returned hash handle to zero in case of failure. --- dlls/advapi32/crypt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/advapi32/crypt.c b/dlls/advapi32/crypt.c index 833a40c1ba1..35c1251896a 100644 --- a/dlls/advapi32/crypt.c +++ b/dlls/advapi32/crypt.c @@ -677,6 +677,7 @@ BOOL WINAPI CryptCreateHash (HCRYPTPROV hProv, ALG_ID Algid, HCRYPTKEY hKey, /* CSP error! */ CRYPT_Free(hash); + *phHash = 0; return FALSE; }