=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: winevdm: Don't give up if we can' t shorten the current directory.

Alexandre Julliard julliard at winehq.org
Mon Oct 3 17:21:24 CDT 2011


Module: wine
Branch: master
Commit: 42c1b06a134d71592017062a72364b9e38ea407b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=42c1b06a134d71592017062a72364b9e38ea407b

Author: André Hentschel <nerv at dawncrow.de>
Date:   Sun Oct  2 16:37:29 2011 +0200

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

---

 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;
 




More information about the wine-cvs mailing list