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,6 +456,7 @@ VOID WINAPI OutputDebugStringA(LPCSTR _OutputString)
if(hDBMonDataReady) CloseHandle(hDBMonDataReady); if(hDBMonDataReady) CloseHandle(hDBMonDataReady);
/* leave the critical section */ /* leave the critical section */
if(hDBMonDataReady != NULL)
ReleaseMutex(hDBMonMutex); ReleaseMutex(hDBMonMutex);
#if 0 #if 0
} }