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 */
|
/* CSP Error */
|
||||||
CRYPT_Free(key);
|
CRYPT_Free(key);
|
||||||
|
*phUserKey = 0;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user