Module: wine Branch: master Commit: cf5d9a0e34e01715ddfe842a22d71c3bbcdcbf5a URL: http://source.winehq.org/git/wine.git/?a=commit;h=cf5d9a0e34e01715ddfe842a22...
Author: Alexandre Julliard julliard@winehq.org Date: Mon May 30 17:25:39 2011 +0200
winevdm: Print an error when trying to start a DOS app from the z: drive.
---
programs/winevdm/winevdm.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/programs/winevdm/winevdm.c b/programs/winevdm/winevdm.c index 0aaf041..04f2953 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;