May 13, 2026
4:49 p.m.
Jon Koops (@jonkoops) commented about dlls/dsound/dsound_main.c:
GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, (LPCWSTR)hInstDLL, &hInstDLL); break; case DLL_PROCESS_DETACH: - if (lpvReserved) break; - DeleteCriticalSection(&DSOUND_renderers_lock);
I removed this code since it is essentially a no-op, however I did not remove the `case` statement (which is also a no-op), because existing code in the project seems to prefer keeping the `DLL_PROCESS_DETACH` case around, even if it doesn't do anything. Let me know if this should be pruned further. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10886#note_139715