winedbg: Suppress all message boxes if ShowCrashDialog is disabled.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
91c1fc2ff9
commit
14da5bfbd5
|
@ -34,13 +34,18 @@
|
||||||
|
|
||||||
static char *crash_log;
|
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)
|
||||||
|
{
|
||||||
|
if (DBG_IVAR(ShowCrashDialog))
|
||||||
{
|
{
|
||||||
WCHAR caption[256];
|
WCHAR caption[256];
|
||||||
WCHAR text[256];
|
WCHAR text[256];
|
||||||
LoadStringW(GetModuleHandleW(NULL), captionId, caption, ARRAY_SIZE(caption));
|
LoadStringW(GetModuleHandleW(NULL), captionid, caption, ARRAY_SIZE(caption));
|
||||||
LoadStringW(GetModuleHandleW(NULL), textId, text, ARRAY_SIZE(text));
|
LoadStringW(GetModuleHandleW(NULL), textid, text, ARRAY_SIZE(text));
|
||||||
return MessageBoxW(hwnd, text, caption, uType);
|
return MessageBoxW(hwnd, text, caption, type);
|
||||||
|
}
|
||||||
|
|
||||||
|
return IDCANCEL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static WCHAR *get_program_name(HANDLE hProcess)
|
static WCHAR *get_program_name(HANDLE hProcess)
|
||||||
|
|
Loading…
Reference in New Issue