From: Gregor Schneider Date: Sun, 4 Apr 2010 18:24:28 +0000 (+0000) Subject: [FORMAT] - Bail out when detecting invalid root path, instead of asking to insert... X-Git-Tag: backups/header-work@57446~30^2~115 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=a842dbcce0a32eb6169eef176a32c5004215fcc3 [FORMAT] - Bail out when detecting invalid root path, instead of asking to insert a disk See issue #4067 for more details. svn path=/trunk/; revision=46721 --- diff --git a/reactos/base/system/format/format.c b/reactos/base/system/format/format.c index 59f9f302a0a..ba9f42b3a05 100755 --- a/reactos/base/system/format/format.c +++ b/reactos/base/system/format/format.c @@ -363,6 +363,12 @@ _tmain(int argc, TCHAR *argv[]) PrintWin32Error( szMsg, GetLastError()); return -1; } + else if ( driveType == 1 ) + { + LoadString( GetModuleHandle(NULL), STRING_NO_VOLUME, (LPTSTR) szMsg,RC_STRING_MAX_SIZE); + PrintWin32Error( szMsg, GetLastError()); + return -1; + } if( driveType != DRIVE_FIXED ) { LoadString( GetModuleHandle(NULL), STRING_INSERT_DISK, (LPTSTR) szMsg,RC_STRING_MAX_SIZE);