mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 08:20:20 +00:00
wineesd.drv: Add DebugInfo to critical sections.
This commit is contained in:
parent
2db1e421f1
commit
6c9acb67bc
|
@ -545,7 +545,7 @@ static int ESD_InitRingMessage(ESD_MSG_RING* mr)
|
||||||
mr->ring_buffer_size = ESD_RING_BUFFER_INCREMENT;
|
mr->ring_buffer_size = ESD_RING_BUFFER_INCREMENT;
|
||||||
mr->messages = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,mr->ring_buffer_size * sizeof(RING_MSG));
|
mr->messages = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,mr->ring_buffer_size * sizeof(RING_MSG));
|
||||||
InitializeCriticalSection(&mr->msg_crst);
|
InitializeCriticalSection(&mr->msg_crst);
|
||||||
mr->msg_crst.DebugInfo->Spare[0] = (DWORD_PTR)"WINEESD_msg_crst";
|
mr->msg_crst.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": ESD_MSG_RING.msg_crst");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -563,6 +563,7 @@ static int ESD_DestroyRingMessage(ESD_MSG_RING* mr)
|
||||||
#endif
|
#endif
|
||||||
HeapFree(GetProcessHeap(),0,mr->messages);
|
HeapFree(GetProcessHeap(),0,mr->messages);
|
||||||
mr->messages=NULL;
|
mr->messages=NULL;
|
||||||
|
mr->msg_crst.DebugInfo->Spare[0] = 0;
|
||||||
DeleteCriticalSection(&mr->msg_crst);
|
DeleteCriticalSection(&mr->msg_crst);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue