mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:12:57 +00:00
Don't try to release mutex with NULL handle. Also prevent releasing the same mutex twice.
svn path=/trunk/; revision=14168
This commit is contained in:
parent
310a5bcfb7
commit
b8419654bd
1 changed files with 2 additions and 1 deletions
|
@ -456,7 +456,8 @@ VOID WINAPI OutputDebugStringA(LPCSTR _OutputString)
|
|||
if(hDBMonDataReady) CloseHandle(hDBMonDataReady);
|
||||
|
||||
/* leave the critical section */
|
||||
ReleaseMutex(hDBMonMutex);
|
||||
if(hDBMonDataReady != NULL)
|
||||
ReleaseMutex(hDBMonMutex);
|
||||
#if 0
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue