Alexandre Julliard : libwine: Allow to specify a non-existing directory as WINEPREFIX.

Alexandre Julliard julliard at winehq.org
Tue Apr 22 06:46:47 CDT 2008


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Apr 21 15:48:12 2008 +0200

libwine: Allow to specify a non-existing directory as WINEPREFIX.

---

 libs/wine/config.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/libs/wine/config.c b/libs/wine/config.c
index 9e33f4e..ba89811 100644
--- a/libs/wine/config.c
+++ b/libs/wine/config.c
@@ -209,10 +209,8 @@ static void init_paths(void)
             fatal_error( "invalid directory %s in WINEPREFIX: not an absolute path\n", prefix );
         if (stat( config_dir, &st ) == -1)
         {
-            if (errno != ENOENT)
-                fatal_perror( "cannot open %s as specified in WINEPREFIX", config_dir );
-            fatal_error( "the '%s' directory specified in WINEPREFIX doesn't exist.\n"
-                         "You may want to create it by running 'wineprefixcreate'.\n", config_dir );
+            if (errno == ENOENT) return;  /* will be created later on */
+            fatal_perror( "cannot open %s as specified in WINEPREFIX", config_dir );
         }
     }
     else




More information about the wine-cvs mailing list