Rhys McGuckin : wintrust: Check for null CleanupPolicy function pointer.
Alexandre Julliard
julliard at winehq.org
Thu Apr 17 14:43:45 CDT 2008
Module: wine
Branch: master
Commit: 890c3fd0f62153fc4b6043d2a9b148e5f59da7ad
URL: http://source.winehq.org/git/wine.git/?a=commit;h=890c3fd0f62153fc4b6043d2a9b148e5f59da7ad
Author: Rhys McGuckin <rhysmcguckin at yahoo.com.au>
Date: Fri Apr 18 03:41:22 2008 +1000
wintrust: Check for null CleanupPolicy function pointer.
---
dlls/wintrust/wintrust_main.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/wintrust/wintrust_main.c b/dlls/wintrust/wintrust_main.c
index b7788b1..c5b1612 100644
--- a/dlls/wintrust/wintrust_main.c
+++ b/dlls/wintrust/wintrust_main.c
@@ -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);
More information about the wine-cvs
mailing list