msvideo.dll16: Add missing unlock on an error path (Smatch).

This commit is contained in:
Michael Stefaniuc 2009-05-16 21:42:39 +02:00 committed by Alexandre Julliard
parent e083dc831c
commit d39dd38346
1 changed files with 5 additions and 1 deletions

View File

@ -774,7 +774,11 @@ HIC16 VFWAPI ICOpenFunction16(DWORD fccType, DWORD fccHandler, UINT16 wMode, FAR
struct msvideo_thunk* thunk;
EnterCriticalSection(&msvideo_cs);
if (!(thunk = MSVIDEO_AddThunk((DWORD)lpfnHandler))) return 0;
if (!(thunk = MSVIDEO_AddThunk((DWORD)lpfnHandler)))
{
LeaveCriticalSection(&msvideo_cs);
return 0;
}
if ((hic32 = ICOpenFunction(fccType, fccHandler, wMode, IC_Callback3216)))
thunk->hIC16 = HIC_16(hic32);
else