[ros-diffs] [mf] 15264: adjustments for GCC and MinGW

mf at svn.reactos.com mf at svn.reactos.com
Fri May 13 17:35:57 CEST 2005


adjustments for GCC and MinGW
Modified: trunk/reactos/subsys/system/winefile/winefile.c
  _____  

Modified: trunk/reactos/subsys/system/winefile/winefile.c
--- trunk/reactos/subsys/system/winefile/winefile.c	2005-05-13
15:32:04 UTC (rev 15263)
+++ trunk/reactos/subsys/system/winefile/winefile.c	2005-05-13
15:35:55 UTC (rev 15264)
@@ -2013,28 +2013,32 @@

 
 				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);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050513/9263d35e/attachment.html


More information about the Ros-diffs mailing list