crypt32: set return value on exception

Juan Lang juan.lang at gmail.com
Tue Aug 14 13:33:26 CDT 2007


Spotted by Paul Vriens (thanks!)

--Juan
-------------- next part --------------
From 37ce462f38bc904263c51d49604ac48b569f19c0 Mon Sep 17 00:00:00 2001
From: Juan Lang <juan.lang at gmail.com>
Date: Tue, 14 Aug 2007 11:32:33 -0700
Subject: [PATCH] Set return value on exception
---
 dlls/crypt32/msg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c
index 70527bd..a68bf52 100644
--- a/dlls/crypt32/msg.c
+++ b/dlls/crypt32/msg.c
@@ -209,6 +209,7 @@ static BOOL CDataEncodeMsg_Update(HCRYPT
         __EXCEPT_PAGE_FAULT
         {
             SetLastError(STATUS_ACCESS_VIOLATION);
+            ret = FALSE;
         }
         __ENDTRY;
     }
-- 
1.4.1


More information about the wine-patches mailing list