Signed-off-by: Josh DuBois duboisj@codeweavers.com --- dlls/ntdll/server.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/ntdll/server.c b/dlls/ntdll/server.c index c1f231e..a46d030 100644 --- a/dlls/ntdll/server.c +++ b/dlls/ntdll/server.c @@ -1215,8 +1215,10 @@ static int server_connect(void) /* retrieve the current directory */ fd_cwd = open( ".", O_RDONLY ); if (fd_cwd != -1) fcntl( fd_cwd, F_SETFD, FD_CLOEXEC ); + else WARN( "Failed to open cwd. Will cd to c:\. (%d : %s)\n", errno, strerror( errno ) );
setup_config_dir(); + if (fd_cwd == -1) fd_cwd = open( "./drive_c", O_RDONLY ); serverdir = wine_get_server_dir();
/* chdir to the server directory */