20 Feb
2023
20 Feb
'23
6:57 p.m.
Rémi Bernon (@rbernon) commented about dlls/windows.media.speech/main.c:
+BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved ) +{ + NTSTATUS status; + + switch (reason) + { + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(instance); + __wine_init_unix_call(); + + if ((status = WINE_UNIX_CALL(unix_speech_vosk_process_attach, NULL))) + WARN("Loading Vosk failed with status %#lx.\n", status); + + break; + case DLL_PROCESS_DETACH: + if (__wine_unixlib_handle) WINE_UNIX_CALL(unix_speech_vosk_process_detach, NULL); I don't think you need to check `__wine_unixlib_handle`.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2091#note_24832