Added some missing LeaveCriticalSection's.

This commit is contained in:
Michael Stefaniuc 2003-02-12 01:26:05 +00:00 committed by Alexandre Julliard
parent 3dcd451bf6
commit 62ed0ffe00
3 changed files with 4 additions and 1 deletions

View File

@ -1285,6 +1285,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_RunApplication
HeapFree( GetProcessHeap(), 0, enumData.lpszCommandLine );
HeapFree( GetProcessHeap(), 0, enumData.lpszCurrentDirectory );
LeaveCriticalSection( &This->unk->DPL_lock );
return DPERR_CANTCREATEPROCESS;
}
@ -1304,6 +1305,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_RunApplication
if( hr != DP_OK )
{
ERR( "SetConnectionSettings failure %s\n", DPLAYX_HresultToString( hr ) );
LeaveCriticalSection( &This->unk->DPL_lock );
return hr;
}

View File

@ -187,7 +187,6 @@ void WINAPI DOSVM_QueueEvent( INT irq, INT priority, DOSRELAY relay, LPVOID data
LPDOSEVENT event, cur, prev;
if (current_context) {
EnterCriticalSection(&qcrit);
event = malloc(sizeof(DOSEVENT));
if (!event) {
ERR("out of memory allocating event entry\n");
@ -196,6 +195,7 @@ void WINAPI DOSVM_QueueEvent( INT irq, INT priority, DOSRELAY relay, LPVOID data
event->irq = irq; event->priority = priority;
event->relay = relay; event->data = data;
EnterCriticalSection(&qcrit);
/* insert event into linked list, in order *after*
* all earlier events of higher or equal priority */
cur = pending_event; prev = NULL;

View File

@ -566,6 +566,7 @@ static DWORD MCIAVI_mciSeek(UINT wDevID, DWORD dwFlags, LPMCI_SEEK_PARMS lpParms
wma->dwCurrVideoFrame = MCIAVI_ConvertTimeFormatToFrame(wma, lpParms->dwTo);
} else {
WARN("dwFlag doesn't tell where to seek to...\n");
LeaveCriticalSection(&wma->cs);
return MCIERR_MISSING_PARAMETER;
}