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
9d911a57
Commit
9d911a57
authored
Jan 22, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Move suspending a thread on startup back to the platform-specific files.
This partially reverts
f64d2688
. Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a83532d8
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
9 deletions
+9
-9
loader.c
dlls/ntdll/loader.c
+1
-3
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+1
-1
signal_arm.c
dlls/ntdll/signal_arm.c
+1
-1
signal_arm64.c
dlls/ntdll/signal_arm64.c
+2
-1
signal_i386.c
dlls/ntdll/signal_i386.c
+1
-1
signal_powerpc.c
dlls/ntdll/signal_powerpc.c
+2
-1
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+1
-1
No files found.
dlls/ntdll/loader.c
View file @
9d911a57
...
...
@@ -2963,14 +2963,12 @@ PIMAGE_NT_HEADERS WINAPI RtlImageNtHeader(HMODULE hModule)
* Attach to all the loaded dlls.
* If this is the first time, perform the full process initialization.
*/
NTSTATUS
attach_dlls
(
CONTEXT
*
context
,
BOOL
suspend
)
NTSTATUS
attach_dlls
(
CONTEXT
*
context
)
{
NTSTATUS
status
;
WINE_MODREF
*
wm
;
LPCWSTR
load_path
=
NtCurrentTeb
()
->
Peb
->
ProcessParameters
->
DllPath
.
Buffer
;
if
(
suspend
)
wait_suspend
(
context
);
pthread_sigmask
(
SIG_UNBLOCK
,
&
server_block_set
,
NULL
);
if
(
process_detaching
)
return
STATUS_SUCCESS
;
...
...
dlls/ntdll/ntdll_misc.h
View file @
9d911a57
...
...
@@ -106,7 +106,7 @@ extern NTSTATUS validate_open_object_attributes( const OBJECT_ATTRIBUTES *attr )
/* module handling */
extern
LIST_ENTRY
tls_links
DECLSPEC_HIDDEN
;
extern
NTSTATUS
attach_dlls
(
CONTEXT
*
context
,
BOOL
suspend
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
attach_dlls
(
CONTEXT
*
context
)
DECLSPEC_HIDDEN
;
extern
FARPROC
RELAY_GetProcAddress
(
HMODULE
module
,
const
IMAGE_EXPORT_DIRECTORY
*
exports
,
DWORD
exp_size
,
FARPROC
proc
,
DWORD
ordinal
,
const
WCHAR
*
user
)
DECLSPEC_HIDDEN
;
extern
FARPROC
SNOOP_GetProcAddress
(
HMODULE
hmod
,
const
IMAGE_EXPORT_DIRECTORY
*
exports
,
DWORD
exp_size
,
...
...
dlls/ntdll/signal_arm.c
View file @
9d911a57
...
...
@@ -1286,7 +1286,7 @@ PCONTEXT DECLSPEC_HIDDEN attach_thread( LPTHREAD_START_ROUTINE entry, void *arg,
init_thread_context
(
ctx
,
entry
,
arg
,
relay
);
}
ctx
->
ContextFlags
=
CONTEXT_FULL
;
attach_dlls
(
ctx
,
FALSE
);
attach_dlls
(
ctx
);
return
ctx
;
}
...
...
dlls/ntdll/signal_arm64.c
View file @
9d911a57
...
...
@@ -1016,7 +1016,8 @@ static void thread_startup( void *param )
context
.
Sp
=
(
DWORD_PTR
)
NtCurrentTeb
()
->
Tib
.
StackBase
;
context
.
Pc
=
(
DWORD_PTR
)
info
->
start
;
attach_dlls
(
&
context
,
info
->
suspend
);
if
(
info
->
suspend
)
wait_suspend
(
&
context
);
attach_dlls
(
&
context
);
((
thread_start_func
)
context
.
Pc
)(
(
LPTHREAD_START_ROUTINE
)
context
.
u
.
s
.
X0
,
(
void
*
)
context
.
u
.
s
.
X1
);
}
...
...
dlls/ntdll/signal_i386.c
View file @
9d911a57
...
...
@@ -2996,7 +2996,7 @@ PCONTEXT DECLSPEC_HIDDEN attach_thread( LPTHREAD_START_ROUTINE entry, void *arg,
init_thread_context
(
ctx
,
entry
,
arg
,
relay
);
}
ctx
->
ContextFlags
=
CONTEXT_FULL
;
attach_dlls
(
ctx
,
FALSE
);
attach_dlls
(
ctx
);
return
ctx
;
}
...
...
dlls/ntdll/signal_powerpc.c
View file @
9d911a57
...
...
@@ -1178,7 +1178,8 @@ static void thread_startup( void *param )
context
.
Gpr4
=
(
DWORD
)
info
->
arg
;
context
.
Iar
=
(
DWORD
)
info
->
start
;
attach_dlls
(
&
context
,
info
->
suspend
);
if
(
info
->
suspend
)
wait_suspend
(
&
context
);
attach_dlls
(
&
context
);
((
thread_start_func
)
context
.
Iar
)(
(
LPTHREAD_START_ROUTINE
)
context
.
Gpr3
,
(
void
*
)
context
.
Gpr4
);
}
...
...
dlls/ntdll/signal_x86_64.c
View file @
9d911a57
...
...
@@ -4169,7 +4169,7 @@ PCONTEXT DECLSPEC_HIDDEN attach_thread( LPTHREAD_START_ROUTINE entry, void *arg,
init_thread_context
(
ctx
,
entry
,
arg
,
relay
);
}
ctx
->
ContextFlags
=
CONTEXT_FULL
;
attach_dlls
(
ctx
,
FALSE
);
attach_dlls
(
ctx
);
return
ctx
;
}
...
...
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