Commit 42c1b06a authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

winevdm: Don't give up if we can't shorten the current directory.

parent 718a924f
...@@ -165,7 +165,7 @@ static void start_dosbox( const char *appname, const char *args ) ...@@ -165,7 +165,7 @@ static void start_dosbox( const char *appname, const char *args )
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;
if (!GetShortPathNameA( appname, app, MAX_PATH )) return; if (!GetShortPathNameA( appname, app, MAX_PATH )) return;
if (!GetShortPathNameW( path, path, MAX_PATH )) return; GetShortPathNameW( path, path, MAX_PATH );
file = CreateFileW( config, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, 0 ); file = CreateFileW( config, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, 0 );
if (file == INVALID_HANDLE_VALUE) return; if (file == INVALID_HANDLE_VALUE) 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