Commit af9f7223 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

winex11.drv: Added ThreadDetach entry point and use it instead of DllMain.

parent ffe01b33
......@@ -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
......
......@@ -597,9 +597,9 @@ static BOOL process_attach(void)
/***********************************************************************
* X11DRV thread termination routine
* ThreadDetach (X11DRV.@)
*/
static void thread_detach(void)
void CDECL X11DRV_ThreadDetach(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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment