wintrust: Check for null CleanupPolicy function pointer.

This commit is contained in:
Rhys McGuckin 2008-04-18 03:41:22 +10:00 committed by Alexandre Julliard
parent 4c6d2b01cc
commit 890c3fd0f6
1 changed files with 3 additions and 1 deletions

View File

@ -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);