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
af9f7223
Commit
af9f7223
authored
Aug 29, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 30, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Added ThreadDetach entry point and use it instead of DllMain.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ffe01b33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
winex11.drv.spec
dlls/winex11.drv/winex11.drv.spec
+1
-0
x11drv_main.c
dlls/winex11.drv/x11drv_main.c
+3
-5
No files found.
dlls/winex11.drv/winex11.drv.spec
View file @
af9f7223
...
...
@@ -53,6 +53,7 @@
@ cdecl WindowPosChanging(long long long ptr ptr ptr ptr) X11DRV_WindowPosChanging
@ cdecl WindowPosChanged(long long long ptr ptr ptr ptr ptr) X11DRV_WindowPosChanged
@ cdecl SystemParametersInfo(long long ptr long) X11DRV_SystemParametersInfo
@ cdecl ThreadDetach() X11DRV_ThreadDetach
# WinTab32
@ cdecl AttachEventQueueToTablet(long) X11DRV_AttachEventQueueToTablet
...
...
dlls/winex11.drv/x11drv_main.c
View file @
af9f7223
...
...
@@ -597,9 +597,9 @@ static BOOL process_attach(void)
/***********************************************************************
*
X11DRV thread termination routine
*
ThreadDetach (X11DRV.@)
*/
static
void
thread_d
etach
(
void
)
void
CDECL
X11DRV_ThreadD
etach
(
void
)
{
struct
x11drv_thread_data
*
data
=
TlsGetValue
(
thread_data_tls_index
);
...
...
@@ -690,12 +690,10 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
switch
(
reason
)
{
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hinst
);
x11drv_module
=
hinst
;
ret
=
process_attach
();
break
;
case
DLL_THREAD_DETACH
:
thread_detach
();
break
;
}
return
ret
;
}
...
...
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