Pass crypt provider and type to CPAcquireContext.
This commit is contained in:
parent
8f7c2bc6a5
commit
0effd76987
|
@ -420,6 +420,8 @@ BOOL WINAPI CryptAcquireContextA (HCRYPTPROV *phProv, LPCSTR pszContainer,
|
|||
/* CRYPT_LoadProvider calls SetLastError */
|
||||
goto error;
|
||||
}
|
||||
pProv->pVTable->dwProvType = dwProvType;
|
||||
pProv->pVTable->pszProvName = provname;
|
||||
if (pProv->pFuncs->pCPAcquireContext(&pProv->hPrivate, (CHAR*)pszContainer, dwFlags, pProv->pVTable))
|
||||
{
|
||||
/* MSDN: When this flag is set, the value returned in phProv is undefined,
|
||||
|
|
Loading…
Reference in New Issue