msvcr110: forward __crtSetUnhandledExceptionFilter to kernel32.SetUnhandledExceptionFilter (try 3)

Austin English austinenglish at gmail.com
Wed Apr 17 16:32:41 CDT 2013


Call the function directly instead of forwarding.

-- 
-Austin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130417/3cccb6af/attachment.html>
-------------- next part --------------
diff --git a/dlls/msvcr110/msvcr110.c b/dlls/msvcr110/msvcr110.c
index ba943b0..8a77fbe 100644
--- a/dlls/msvcr110/msvcr110.c
+++ b/dlls/msvcr110/msvcr110.c
@@ -39,3 +39,8 @@ BOOL WINAPI DllMain(HINSTANCE hdll, DWORD reason, LPVOID reserved)
     }
     return TRUE;
 }
+
+LPTOP_LEVEL_EXCEPTION_FILTER MSVCR110__crtSetUnhandledExceptionFilter(LPTOP_LEVEL_EXCEPTION_FILTER filter)
+{
+    return SetUnhandledExceptionFilter(filter);
+}
diff --git a/dlls/msvcr110/msvcr110.spec b/dlls/msvcr110/msvcr110.spec
index 29c7186..40f1470 100644
--- a/dlls/msvcr110/msvcr110.spec
+++ b/dlls/msvcr110/msvcr110.spec
@@ -928,7 +928,7 @@
 @ stub -arch=i386,win64 __crtLCMapStringEx
 @ cdecl __crtLCMapStringW(long long wstr long ptr long long long) msvcrt.__crtLCMapStringW
 @ stub -arch=i386,win64 __crtSetThreadStackGuarantee
-@ stub __crtSetUnhandledExceptionFilter
+@ cdecl __crtSetUnhandledExceptionFilter(ptr) MSVCR110__crtSetUnhandledExceptionFilter
 @ stub -arch=i386,win64 __crtTerminateProcess
 @ stub -arch=i386,win64 __crtUnhandledException
 @ cdecl __daylight() msvcrt.__daylight


More information about the wine-patches mailing list