Zebediah Figura : winedbg: Suppress all message boxes if ShowCrashDialog is disabled.
Alexandre Julliard
julliard at winehq.org
Thu Jun 21 18:37:27 CDT 2018
Module: wine
Branch: master
Commit: 14da5bfbd58072374d77b75e493bf96f2f81cca5
URL: https://source.winehq.org/git/wine.git/?a=commit;h=14da5bfbd58072374d77b75e493bf96f2f81cca5
Author: Zebediah Figura <zfigura at codeweavers.com>
Date: Wed Jun 20 17:25:47 2018 -0500
winedbg: Suppress all message boxes if ShowCrashDialog is disabled.
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/winedbg/crashdlg.c | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/programs/winedbg/crashdlg.c b/programs/winedbg/crashdlg.c
index 5c913ff..a925378 100644
--- a/programs/winedbg/crashdlg.c
+++ b/programs/winedbg/crashdlg.c
@@ -34,13 +34,18 @@
static char *crash_log;
-int msgbox_res_id(HWND hwnd, UINT textId, UINT captionId, UINT uType)
+int msgbox_res_id(HWND hwnd, UINT textid, UINT captionid, UINT type)
{
- WCHAR caption[256];
- WCHAR text[256];
- LoadStringW(GetModuleHandleW(NULL), captionId, caption, ARRAY_SIZE(caption));
- LoadStringW(GetModuleHandleW(NULL), textId, text, ARRAY_SIZE(text));
- return MessageBoxW(hwnd, text, caption, uType);
+ if (DBG_IVAR(ShowCrashDialog))
+ {
+ WCHAR caption[256];
+ WCHAR text[256];
+ LoadStringW(GetModuleHandleW(NULL), captionid, caption, ARRAY_SIZE(caption));
+ LoadStringW(GetModuleHandleW(NULL), textid, text, ARRAY_SIZE(text));
+ return MessageBoxW(hwnd, text, caption, type);
+ }
+
+ return IDCANCEL;
}
static WCHAR *get_program_name(HANDLE hProcess)
More information about the wine-cvs
mailing list