Commit cf5d9a0e authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 7165e22d
...@@ -161,6 +161,12 @@ static void start_dosbox( const char *appname, const char *args ) ...@@ -161,6 +161,12 @@ static void start_dosbox( const char *appname, const char *args )
char *dosbox = find_dosbox(); char *dosbox = find_dosbox();
if (!dosbox) return; 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 (!GetTempPathW( MAX_PATH, path )) return;
if (!GetTempFileNameW( path, cfgW, 0, config )) return; if (!GetTempFileNameW( path, cfgW, 0, config )) return;
if (!GetCurrentDirectoryW( MAX_PATH, path )) return; if (!GetCurrentDirectoryW( MAX_PATH, path )) return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment