Piotr Caban : msvcp140: Don't forward __ExceptionPtrCreate to msvcr120.

Alexandre Julliard julliard at winehq.org
Wed May 15 14:32:21 CDT 2019


Module: wine
Branch: stable
Commit: df2ae75f87c32ecb4e656ae6536eff88257f6b7e
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=df2ae75f87c32ecb4e656ae6536eff88257f6b7e

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Thu Feb 28 19:42:50 2019 +0100

msvcp140: Don't forward __ExceptionPtrCreate to msvcr120.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46583
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit a91c1e054a4bd9995d23eb28908facb5d34f655f)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/msvcp140/msvcp140.spec |  4 ++--
 dlls/msvcp90/exception.c    | 14 ++++++++++++++
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/dlls/msvcp140/msvcp140.spec b/dlls/msvcp140/msvcp140.spec
index 6a4eb14..20f542e 100644
--- a/dlls/msvcp140/msvcp140.spec
+++ b/dlls/msvcp140/msvcp140.spec
@@ -1697,8 +1697,8 @@
 @ cdecl -arch=win64 ?__ExceptionPtrCopy@@YAXPEAXPEBX at Z(ptr ptr) msvcr120.?__ExceptionPtrCopy@@YAXPEAXPEBX at Z
 @ cdecl -arch=win32 ?__ExceptionPtrCopyException@@YAXPAXPBX1 at Z(ptr ptr ptr) msvcr120.?__ExceptionPtrCopyException@@YAXPAXPBX1 at Z
 @ cdecl -arch=win64 ?__ExceptionPtrCopyException@@YAXPEAXPEBX1 at Z(ptr ptr ptr) msvcr120.?__ExceptionPtrCopyException@@YAXPEAXPEBX1 at Z
-@ cdecl -arch=win32 ?__ExceptionPtrCreate@@YAXPAX at Z(ptr) msvcr120.?__ExceptionPtrCreate@@YAXPAX at Z
-@ cdecl -arch=win64 ?__ExceptionPtrCreate@@YAXPEAX at Z(ptr) msvcr120.?__ExceptionPtrCreate@@YAXPEAX at Z
+@ cdecl -arch=win32 ?__ExceptionPtrCreate@@YAXPAX at Z(ptr) __ExceptionPtrCreate
+@ cdecl -arch=win64 ?__ExceptionPtrCreate@@YAXPEAX at Z(ptr) __ExceptionPtrCreate
 @ cdecl -arch=win32 ?__ExceptionPtrCurrentException@@YAXPAX at Z(ptr) msvcr120.?__ExceptionPtrCurrentException@@YAXPAX at Z
 @ cdecl -arch=win64 ?__ExceptionPtrCurrentException@@YAXPEAX at Z(ptr) msvcr120.?__ExceptionPtrCurrentException@@YAXPEAX at Z
 @ cdecl -arch=win32 ?__ExceptionPtrDestroy@@YAXPAX at Z(ptr) msvcr120.?__ExceptionPtrDestroy@@YAXPAX at Z
diff --git a/dlls/msvcp90/exception.c b/dlls/msvcp90/exception.c
index e7ba3d7..5a382e3 100644
--- a/dlls/msvcp90/exception.c
+++ b/dlls/msvcp90/exception.c
@@ -949,6 +949,20 @@ int __cdecl __uncaught_exceptions(void)
 {
     return *UCRTBASE___processing_throw();
 }
+
+typedef struct
+{
+    EXCEPTION_RECORD *rec;
+    int *ref; /* not binary compatible with native */
+} exception_ptr;
+
+void __cdecl __ExceptionPtrCreate(exception_ptr *ep)
+{
+    TRACE("(%p)\n", ep);
+
+    ep->rec = NULL;
+    ep->ref = NULL;
+}
 #endif
 
 #if _MSVCP_VER >= 70 || defined(_MSVCIRT)




More information about the wine-cvs mailing list