11 Sep
2025
11 Sep
'25
7:32 a.m.
Rémi Bernon (@rbernon) commented about dlls/windows.media.playback.mediaplayer/main.c:
impl->IMediaPlayer2_iface.lpVtbl = &media_player2_vtbl; impl->ref = 1;
+ InitializeCriticalSectionEx( &impl->cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO ); + impl->cs.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": media_controls.cs");
Could we avoid the critical section here? Could the control be created right on object activation? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8951#note_115653