CryptGetUserKey: Set return key handle to zero in case of failure.
This commit is contained in:
parent
f07f08cfe6
commit
6b12414fc8
|
@ -1451,6 +1451,7 @@ BOOL WINAPI CryptGetUserKey (HCRYPTPROV hProv, DWORD dwKeySpec, HCRYPTKEY *phUse
|
|||
|
||||
/* CSP Error */
|
||||
CRYPT_Free(key);
|
||||
*phUserKey = 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue