Commit 6c9acb67 authored by Jan Zerebecki's avatar Jan Zerebecki Committed by Alexandre Julliard

wineesd.drv: Add DebugInfo to critical sections.

parent 2db1e421
......@@ -545,7 +545,7 @@ static int ESD_InitRingMessage(ESD_MSG_RING* mr)
mr->ring_buffer_size = ESD_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)"WINEESD_msg_crst";
mr->msg_crst.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__ ": ESD_MSG_RING.msg_crst");
return 0;
}
......@@ -563,6 +563,7 @@ static int ESD_DestroyRingMessage(ESD_MSG_RING* mr)
#endif
HeapFree(GetProcessHeap(),0,mr->messages);
mr->messages=NULL;
mr->msg_crst.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&mr->msg_crst);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment