wintrust: Check for null CleanupPolicy function pointer.
This commit is contained in:
parent
4c6d2b01cc
commit
890c3fd0f6
|
@ -151,7 +151,9 @@ static LONG WINTRUST_DefaultClose(HWND hwnd, GUID *actionID,
|
|||
|
||||
if (provData)
|
||||
{
|
||||
err = provData->psPfns->pfnCleanupPolicy(provData);
|
||||
if (provData->psPfns->pfnCleanupPolicy)
|
||||
err = provData->psPfns->pfnCleanupPolicy(provData);
|
||||
|
||||
WINTRUST_Free(provData->padwTrustStepErrors);
|
||||
WINTRUST_Free(provData->u.pPDSip);
|
||||
WINTRUST_Free(provData->psPfns);
|
||||
|
|
Loading…
Reference in New Issue