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

This commit is contained in:
Michael Jung 2004-11-01 21:07:24 +00:00 committed by Alexandre Julliard
parent f07f08cfe6
commit 6b12414fc8
1 changed files with 1 additions and 0 deletions

View File

@ -1451,6 +1451,7 @@ BOOL WINAPI CryptGetUserKey (HCRYPTPROV hProv, DWORD dwKeySpec, HCRYPTKEY *phUse
/* CSP Error */
CRYPT_Free(key);
*phUserKey = 0;
return FALSE;
}