Commit 6b12414f authored by Michael Jung's avatar Michael Jung Committed by Alexandre Julliard

CryptGetUserKey: Set return key handle to zero in case of failure.

parent f07f08cf
......@@ -1451,6 +1451,7 @@ BOOL WINAPI CryptGetUserKey (HCRYPTPROV hProv, DWORD dwKeySpec, HCRYPTKEY *phUse
/* CSP Error */
CRYPT_Free(key);
*phUserKey = 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