Commit a4d85d80 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

wintrust: Use pfnAddStore2Chain internally.

parent 4f2fae1d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment