From 3feb9db02b8baf0d33abbf448427e297ea652b01 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Fri, 13 May 2005 15:35:55 +0000 Subject: [PATCH] adjustments for GCC and MinGW svn path=/trunk/; revision=15264 --- reactos/subsys/system/winefile/winefile.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/system/winefile/winefile.c b/reactos/subsys/system/winefile/winefile.c index 7852cc488fb..89fc7f8480b 100644 --- a/reactos/subsys/system/winefile/winefile.c +++ b/reactos/subsys/system/winefile/winefile.c @@ -2013,28 +2013,32 @@ LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam case ID_CONNECT_NETWORK_DRIVE: { DWORD ret = WNetConnectionDialog(hwnd, RESOURCETYPE_DISK); - if (ret!=NO_ERROR && ret!=(DWORD)-1) + if (ret!=NO_ERROR && ret!=(DWORD)-1) { if (ret == ERROR_EXTENDED_ERROR) display_network_error(hwnd); else display_error(hwnd, ret); + } break;} case ID_DISCONNECT_NETWORK_DRIVE: { DWORD ret = WNetDisconnectDialog(hwnd, RESOURCETYPE_DISK); - if (ret!=NO_ERROR && ret!=(DWORD)-1) + if (ret!=NO_ERROR && ret!=(DWORD)-1) { if (ret == ERROR_EXTENDED_ERROR) display_network_error(hwnd); else display_error(hwnd, ret); + } break;} +#ifndef __MINGW32__ /* SHFormatDrive missing in MinGW (as of 13.5.2005) */ case ID_FORMAT_DISK: { UINT sem_org = SetErrorMode(0); /* Get the current Error Mode settings. */ SetErrorMode(sem_org & ~SEM_FAILCRITICALERRORS); /* Force O/S to handle */ SHFormatDrive(hwnd, 0 /* A: */, SHFMT_ID_DEFAULT, 0); SetErrorMode(sem_org); /* Put it back the way it was. */ break;} +#endif case ID_HELP: WinHelp(hwnd, RS(b1,IDS_WINEFILE), HELP_INDEX, 0);