From a016d7b335aaca7aba15df4752944ea00cf68ec6 Mon Sep 17 00:00:00 2001
From: Rob Shearman <rob@codeweavers.com>
Date: Fri, 30 Nov 2007 18:09:01 +0000
Subject: [PATCH] rpcrt4: Handle all non-continuable exceptions in
 CStdStubBuffer_Invoke.

---
 dlls/rpcrt4/cstub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/rpcrt4/cstub.c b/dlls/rpcrt4/cstub.c
index c81408d89c..b04c494233 100644
--- a/dlls/rpcrt4/cstub.c
+++ b/dlls/rpcrt4/cstub.c
@@ -41,7 +41,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole);
 
 static WINE_EXCEPTION_FILTER(stub_filter)
 {
-    if (GetExceptionCode() == EXCEPTION_ACCESS_VIOLATION)
+    if (GetExceptionInformation()->ExceptionRecord->ExceptionFlags & EXCEPTION_NONCONTINUABLE)
         return EXCEPTION_CONTINUE_SEARCH;
     return EXCEPTION_EXECUTE_HANDLER;
 }
-- 
2.32.0.93.g670b81a890