Pass crypt provider and type to CPAcquireContext.

This commit is contained in:
Mike McCormack 2004-05-12 23:29:44 +00:00 committed by Alexandre Julliard
parent 8f7c2bc6a5
commit 0effd76987
1 changed files with 2 additions and 0 deletions

View File

@ -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,