From cf5d9a0e34e01715ddfe842a22d71c3bbcdcbf5a Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 30 May 2011 17:25:39 +0200 Subject: [PATCH] winevdm: Print an error when trying to start a DOS app from the z: drive. --- programs/winevdm/winevdm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/programs/winevdm/winevdm.c b/programs/winevdm/winevdm.c index 0aaf041597c..04f29538086 100644 --- a/programs/winevdm/winevdm.c +++ b/programs/winevdm/winevdm.c @@ -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;