mirror of
https://github.com/reactos/wine.git
synced 2025-02-22 22:01:51 +00:00
Make sure not to interfere with the lasterror value returned by the
CSP in CryptAcquireContextA.
This commit is contained in:
parent
91207428fb
commit
8ea4fffb98
@ -478,14 +478,20 @@ BOOL WINAPI CryptAcquireContextA (HCRYPTPROV *phProv, LPCSTR pszContainer,
|
||||
error:
|
||||
if (pProv)
|
||||
{
|
||||
FreeLibrary(pProv->hModule);
|
||||
CRYPT_Free(pProv->pVTable);
|
||||
CRYPT_Free(pProv->pFuncs);
|
||||
if (pProv->hModule)
|
||||
FreeLibrary(pProv->hModule);
|
||||
if (pProv->pVTable)
|
||||
CRYPT_Free(pProv->pVTable);
|
||||
if (pProv->pFuncs)
|
||||
CRYPT_Free(pProv->pFuncs);
|
||||
CRYPT_Free(pProv);
|
||||
}
|
||||
CRYPT_Free(provname);
|
||||
CRYPT_Free(temp);
|
||||
CRYPT_Free(imagepath);
|
||||
if (provname)
|
||||
CRYPT_Free(provname);
|
||||
if (temp)
|
||||
CRYPT_Free(temp);
|
||||
if (imagepath)
|
||||
CRYPT_Free(imagepath);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user