winedbg: if the crash dialog is disabled, don't show the invalid parameters dialog
Austin English
austinenglish at gmail.com
Thu Sep 8 17:48:18 CDT 2011
Quite annoying, especially if I explicitly asked not to be shown such
dialogs :).
--
-Austin
-------------- next part --------------
diff --git a/programs/winedbg/tgt_active.c b/programs/winedbg/tgt_active.c
index 376ee22..d082d2a 100644
--- a/programs/winedbg/tgt_active.c
+++ b/programs/winedbg/tgt_active.c
@@ -763,7 +763,9 @@ enum dbg_start dbg_active_auto(int argc, char* argv[])
argc--; argv++;
ds = dbg_active_attach(argc, argv);
if (ds != start_ok) {
- msgbox_res_id(NULL, IDS_INVALID_PARAMS, IDS_AUTO_CAPTION, MB_OK);
+ if (DBG_IVAR(ShowCrashDialog)) {
+ msgbox_res_id(NULL, IDS_INVALID_PARAMS, IDS_AUTO_CAPTION, MB_OK);
+ }
return ds;
}
if (!display_crash_dialog()) {
More information about the wine-patches
mailing list