Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
98eab245
Commit
98eab245
authored
Jun 13, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Initialize file redirects only after the server is connected.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=49380
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c3e2013b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
file.c
dlls/ntdll/unix/file.c
+2
-2
loader.c
dlls/ntdll/unix/loader.c
+0
-2
thread.c
dlls/ntdll/unix/thread.c
+1
-0
No files found.
dlls/ntdll/unix/file.c
View file @
98eab245
...
...
@@ -2689,7 +2689,7 @@ static void init_redirects(void)
char
*
dir
;
struct
stat
st
;
if
(
!
(
dir
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
strlen
(
config_dir
)
+
sizeof
(
windows_dir
)
)))
return
;
if
(
!
(
dir
=
malloc
(
strlen
(
config_dir
)
+
sizeof
(
windows_dir
)
)))
return
;
strcpy
(
dir
,
config_dir
);
strcat
(
dir
,
windows_dir
);
if
(
!
stat
(
dir
,
&
st
))
...
...
@@ -2699,7 +2699,7 @@ static void init_redirects(void)
nb_redirects
=
ARRAY_SIZE
(
redirects
);
}
else
ERR
(
"%s: %s
\n
"
,
dir
,
strerror
(
errno
)
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
dir
);
free
(
dir
);
}
...
...
dlls/ntdll/unix/loader.c
View file @
98eab245
...
...
@@ -1227,7 +1227,6 @@ void __wine_main( int argc, char *argv[], char *envp[] )
fixup_ntdll_imports
(
&
__wine_spec_nt_header
,
module
);
init_environment
(
argc
,
argv
,
envp
);
init_files
();
#ifdef __APPLE__
apple_main_thread
();
...
...
@@ -1262,7 +1261,6 @@ NTSTATUS __cdecl __wine_init_unix_lib( HMODULE module, const void *ptr_in, void
map_so_dll
(
nt
,
module
);
fixup_ntdll_imports
(
&
__wine_spec_nt_header
,
module
);
init_environment
(
__wine_main_argc
,
__wine_main_argv
,
envp
);
init_files
();
*
(
struct
unix_funcs
**
)
ptr_out
=
&
unix_funcs
;
wine_mmap_enum_reserved_areas
(
add_area
,
NULL
,
0
);
return
STATUS_SUCCESS
;
...
...
dlls/ntdll/unix/thread.c
View file @
98eab245
...
...
@@ -110,6 +110,7 @@ TEB * CDECL init_threading( int *nb_threads_ptr, struct ldt_copy **ldt_copy, SIZ
server_init_process
();
info_size
=
server_init_thread
(
teb
->
Peb
,
suspend
);
virtual_map_user_shared_data
();
init_files
();
NtCreateKeyedEvent
(
&
keyed_event
,
GENERIC_READ
|
GENERIC_WRITE
,
NULL
,
0
);
if
(
size
)
*
size
=
info_size
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment