From 21da1f2f1143cfc154a8d46c51d4922ff71008d6 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Mon, 18 Oct 2021 14:58:01 +0200 Subject: [PATCH] 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 Signed-off-by: Alexandre Julliard --- 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