vcomp: Force debug info in critical sections.

This commit is contained in:
Paul Gofman 2024-02-15 15:02:43 -06:00 committed by Alexandre Julliard
parent 139d624787
commit c65d0a0770

View file

@ -1712,7 +1712,7 @@ static CRITICAL_SECTION *alloc_critsect(void)
ExitProcess(1);
}
InitializeCriticalSection(critsect);
InitializeCriticalSectionEx(critsect, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
critsect->DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": critsect");
return critsect;
}