From 3ea9ccca85af6a9340ed56e26c82ec670cc11a29 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 1 Nov 2009 14:05:41 +0100 Subject: [PATCH] mapi32: Check folder for NULL (Coverity). --- dlls/mapi32/sendmail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mapi32/sendmail.c b/dlls/mapi32/sendmail.c index 08aceb07614..cbbff9847e9 100644 --- a/dlls/mapi32/sendmail.c +++ b/dlls/mapi32/sendmail.c @@ -355,7 +355,7 @@ static ULONG sendmail_extended_mapi(LHANDLE mapi_session, ULONG_PTR uiparam, lpM /* Free up the resources we've used */ IMAPIFolder_Release(draft_folder); - IMAPIFolder_Release(folder); + if (folder) IMAPIFolder_Release(folder); IMsgStore_Release(msg_store); logoff: ;