mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 14:30:57 +00:00
[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
This commit is contained in:
parent
7be442943e
commit
a842dbcce0
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue