# HG changeset patch # User reimar # Date 1160926490 0 # Node ID c7f580aa091da5a267c9671413ea8b7b65f91a8f # Parent 7e258473172db9f3eb61b5199461fa7ef4f68702 Set SetErrorMode to make sure no dialog box will pop up when no disk in CD/DVD drive. diff -r 7e258473172d -r c7f580aa091d Gui/win32/gui.c --- a/Gui/win32/gui.c Sun Oct 15 15:25:59 2006 +0000 +++ b/Gui/win32/gui.c Sun Oct 15 15:34:50 2006 +0000 @@ -838,9 +838,11 @@ char searchpath3[MAX_PATH]; #endif int len, pos = 0, cdromdrive = 0; + UINT errmode; point.x = GET_X_LPARAM(lParam); point.y = GET_Y_LPARAM(lParam); ClientToScreen(hWnd, &point); + errmode = SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX); len = GetLogicalDriveStrings(MAX_PATH, device); while(pos < len) { @@ -865,6 +867,7 @@ } pos += strlen(device + pos) + 1; } + SetErrorMode(errmode); TrackPopupMenu(gui->menu, 0, point.x, point.y, 0, hWnd, NULL); return 0; }