Commit 8c7feab0 authored by Alexandre Julliard's avatar Alexandre Julliard

winedbg: Don't display the crash dialog for winedevice.exe, it only confuses users.

parent 150f79b5
......@@ -153,6 +153,8 @@ static INT_PTR WINAPI DlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
BOOL display_crash_dialog(void)
{
static const WCHAR winedeviceW[] = {'w','i','n','e','d','e','v','i','c','e','.','e','x','e',0};
INT_PTR result;
/* dbg_curr_process->handle is not set */
HANDLE hProcess;
......@@ -163,6 +165,7 @@ BOOL display_crash_dialog(void)
hProcess = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, dbg_curr_pid);
g_ProgramName = get_program_name(hProcess);
CloseHandle(hProcess);
if (!strcmpW( g_ProgramName, winedeviceW )) return TRUE;
result = DialogBoxW(GetModuleHandleW(NULL), MAKEINTRESOURCEW(IDD_CRASH_DLG), NULL, DlgProc);
if (result == ID_DEBUG) {
AllocConsole();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment