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:
Filip Navara 2005-03-17 23:16:12 +00:00
parent 310a5bcfb7
commit b8419654bd

View file

@ -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
}
}