winevdm: Print an error when trying to start a DOS app from the z: drive.

oldstable
Alexandre Julliard 2011-05-30 17:25:39 +02:00
parent 7165e22d72
commit cf5d9a0e34
1 changed files with 6 additions and 0 deletions

View File

@ -161,6 +161,12 @@ static void start_dosbox( const char *appname, const char *args )
char *dosbox = find_dosbox();
if (!dosbox) return;
if (tolower(appname[0]) == 'z')
{
WINE_MESSAGE( "winevdm: Cannot start DOS application %s\n", appname );
WINE_MESSAGE( " because DOSBox doesn't support running from the Z: drive.\n" );
ExitProcess(1);
}
if (!GetTempPathW( MAX_PATH, path )) return;
if (!GetTempFileNameW( path, cfgW, 0, config )) return;
if (!GetCurrentDirectoryW( MAX_PATH, path )) return;