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

This commit is contained in:
André Hentschel 2011-10-02 16:37:29 +02:00 committed by Alexandre Julliard
parent 718a924f5b
commit 42c1b06a13

View File

@ -165,7 +165,7 @@ static void start_dosbox( const char *appname, const char *args )
if (!GetTempFileNameW( path, cfgW, 0, config )) return;
if (!GetCurrentDirectoryW( MAX_PATH, 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 );
if (file == INVALID_HANDLE_VALUE) return;