Commit 8f055794 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

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

parent f0e7bd24
......@@ -290,9 +290,9 @@ static BOOL process_attach(void)
/***********************************************************************
* thread_detach
* ThreadDetach (MACDRV.@)
*/
static void thread_detach(void)
void CDECL macdrv_ThreadDetach(void)
{
struct macdrv_thread_data *data = macdrv_thread_data();
......@@ -382,12 +382,10 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
switch(reason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls( hinst );
macdrv_module = hinst;
ret = process_attach();
break;
case DLL_THREAD_DETACH:
thread_detach();
break;
}
return ret;
}
......
......@@ -42,6 +42,7 @@
@ cdecl ShowWindow(long long ptr long) macdrv_ShowWindow
@ cdecl SysCommand(long long long) macdrv_SysCommand
@ cdecl SystemParametersInfo(long long ptr long) macdrv_SystemParametersInfo
@ cdecl ThreadDetach() macdrv_ThreadDetach
@ cdecl ToUnicodeEx(long long ptr ptr long long long) macdrv_ToUnicodeEx
@ cdecl UnregisterHotKey(long long long) macdrv_UnregisterHotKey
@ cdecl UpdateLayeredWindow(long ptr ptr) macdrv_UpdateLayeredWindow
......
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