Pass 0 to level argument of KeInitializeMutex

As documented by Microsoft this reserved argument should be set
to 0.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Yuri Benditovich <yuri.benditovich@daynix.com>
This commit is contained in:
Frediano Ziglio 2017-03-28 18:59:46 +01:00
parent 9460db8760
commit 3437f04cea

View File

@ -3641,10 +3641,10 @@ BOOL QxlDevice::CreateEvents()
KeInitializeEvent(&m_PresentThreadReadyEvent, KeInitializeEvent(&m_PresentThreadReadyEvent,
SynchronizationEvent, SynchronizationEvent,
FALSE); FALSE);
KeInitializeMutex(&m_MemLock,1); KeInitializeMutex(&m_MemLock, 0);
KeInitializeMutex(&m_CmdLock,1); KeInitializeMutex(&m_CmdLock, 0);
KeInitializeMutex(&m_IoLock,1); KeInitializeMutex(&m_IoLock, 0);
KeInitializeMutex(&m_CrsLock,1); KeInitializeMutex(&m_CrsLock, 0);
DbgPrint(TRACE_LEVEL_VERBOSE, ("<--- %s\n", __FUNCTION__)); DbgPrint(TRACE_LEVEL_VERBOSE, ("<--- %s\n", __FUNCTION__));
return TRUE; return TRUE;