winecoreaudio: Disable thread DllMain() calls.

This commit is contained in:
Zebediah Figura 2022-10-16 23:23:56 -05:00 committed by Alexandre Julliard
parent 93577c0013
commit 1a451cb91c

View file

@ -198,6 +198,7 @@ BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, void *reserved)
switch (reason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(dll);
if(NtQueryVirtualMemory(GetCurrentProcess(), dll, MemoryWineUnixFuncs,
&coreaudio_handle, sizeof(coreaudio_handle), NULL))
return FALSE;