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

This commit is contained in:
Alexandre Julliard 2008-04-21 15:48:12 +02:00
parent bab67d3948
commit 662718160e

View file

@ -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