msvcp: Force debug info in critical sections.
This commit is contained in:
parent
beec1b57fb
commit
bca7038692
1 changed files with 2 additions and 2 deletions
|
@ -264,7 +264,7 @@ DEFINE_THISCALL_WRAPPER(mutex_ctor, 4)
|
||||||
mutex* __thiscall mutex_ctor(mutex *this)
|
mutex* __thiscall mutex_ctor(mutex *this)
|
||||||
{
|
{
|
||||||
CRITICAL_SECTION *cs = operator_new(sizeof(*cs));
|
CRITICAL_SECTION *cs = operator_new(sizeof(*cs));
|
||||||
InitializeCriticalSection(cs);
|
InitializeCriticalSectionEx(cs, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
|
||||||
cs->DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": _Mutex critical section");
|
cs->DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": _Mutex critical section");
|
||||||
this->mutex = cs;
|
this->mutex = cs;
|
||||||
return this;
|
return this;
|
||||||
|
@ -347,7 +347,7 @@ void __cdecl _Init_locks__Init_locks_ctor(_Init_locks *this)
|
||||||
{
|
{
|
||||||
for(i=0; i<_MAX_LOCK; i++)
|
for(i=0; i<_MAX_LOCK; i++)
|
||||||
{
|
{
|
||||||
InitializeCriticalSection(&lockit_cs[i]);
|
InitializeCriticalSectionEx(&lockit_cs[i], 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO);
|
||||||
lockit_cs[i].DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": _Lockit critical section");
|
lockit_cs[i].DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": _Lockit critical section");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue