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

This commit is contained in:
Alexandre Julliard 2009-06-23 16:20:33 +02:00
parent 150f79b587
commit 8c7feab0f9
1 changed files with 3 additions and 0 deletions

View File

@ -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();