Piotr Caban : ucrtbase: Avoid bool optimization in __std_exception_copy.

Alexandre Julliard julliard at winehq.org
Mon Oct 18 16:16:28 CDT 2021


Module: wine
Branch: master
Commit: 21da1f2f1143cfc154a8d46c51d4922ff71008d6
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=21da1f2f1143cfc154a8d46c51d4922ff71008d6

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Mon Oct 18 14:58:01 2021 +0200

ucrtbase: Avoid bool optimization in __std_exception_copy.

Otherwise GCC changes do_free = 1 assignment to *dst = *src which breaks
ucrtbase/cpp tests.

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/msvcrt/except.c b/dlls/msvcrt/except.c
index 3920b0e9580..ac0bb50f0fb 100644
--- a/dlls/msvcrt/except.c
+++ b/dlls/msvcrt/except.c
@@ -473,7 +473,7 @@ void CDECL __CxxUnregisterExceptionObject(cxx_frame_info *frame_info, BOOL in_us
 
 struct __std_exception_data {
     char *what;
-    bool dofree;
+    char dofree;
 };
 
 #if _MSVCR_VER>=140




More information about the wine-cvs mailing list