wintrust: Use pfnAddStore2Chain internally.

This commit is contained in:
Juan Lang 2007-08-28 16:09:34 -07:00 committed by Alexandre Julliard
parent 4f2fae1d99
commit a4d85d80a3
1 changed files with 2 additions and 10 deletions

View File

@ -168,16 +168,8 @@ static BOOL SOFTPUB_CreateStoreFromMessage(CRYPT_PROVIDER_DATA *data)
data->hProv, CERT_STORE_NO_CRYPT_RELEASE_FLAG, data->hMsg);
if (store)
{
data->pahStores = data->psPfns->pfnAlloc(sizeof(HCERTSTORE));
if (data->pahStores)
{
data->chStores = 1;
data->pahStores[0] = CertDuplicateStore(store);
CertCloseStore(store, 0);
ret = TRUE;
}
else
SetLastError(ERROR_OUTOFMEMORY);
ret = data->psPfns->pfnAddStore2Chain(data, store);
CertCloseStore(store, 0);
}
TRACE("returning %d\n", ret);
return ret;