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

André Hentschel nerv at dawncrow.de
Sun Oct 2 09:37:29 CDT 2011


fixes http://bugs.winehq.org/show_bug.cgi?id=28525 otherwise that bug might be invalid
---
 programs/winevdm/winevdm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/winevdm/winevdm.c b/programs/winevdm/winevdm.c
index 7950985..288fa01 100644
--- a/programs/winevdm/winevdm.c
+++ b/programs/winevdm/winevdm.c
@@ -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;
 
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list