winenas.drv: Add DebugInfo to critical sections.

This commit is contained in:
Jan Zerebecki 2007-03-10 22:11:40 +01:00 committed by Alexandre Julliard
parent 70f6afdc9c
commit 826321bc60
1 changed files with 2 additions and 0 deletions

View File

@ -461,6 +461,7 @@ static int NAS_InitRingMessage(MSG_RING* mr)
mr->ring_buffer_size = NAS_RING_BUFFER_INCREMENT;
mr->messages = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,mr->ring_buffer_size * sizeof(RING_MSG));
InitializeCriticalSection(&mr->msg_crst);
mr->msg_crst.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": MSG_RING.msg_crst");
return 0;
}
@ -472,6 +473,7 @@ static int NAS_DestroyRingMessage(MSG_RING* mr)
{
CloseHandle(mr->msg_event);
HeapFree(GetProcessHeap(),0,mr->messages);
mr->msg_crst.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&mr->msg_crst);
return 0;
}