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

Alexandre Julliard julliard at winehq.org
Tue Jun 23 10:02:51 CDT 2009


Module: wine
Branch: master
Commit: 8c7feab0f99ad104e5803537ada839e15280fb10
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8c7feab0f99ad104e5803537ada839e15280fb10

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jun 23 16:20:33 2009 +0200

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

---

 programs/winedbg/crashdlg.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/programs/winedbg/crashdlg.c b/programs/winedbg/crashdlg.c
index 3b32adb..db25021 100644
--- a/programs/winedbg/crashdlg.c
+++ b/programs/winedbg/crashdlg.c
@@ -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();




More information about the wine-cvs mailing list