Commit d39dd383 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent e083dc83
...@@ -774,7 +774,11 @@ HIC16 VFWAPI ICOpenFunction16(DWORD fccType, DWORD fccHandler, UINT16 wMode, FAR ...@@ -774,7 +774,11 @@ HIC16 VFWAPI ICOpenFunction16(DWORD fccType, DWORD fccHandler, UINT16 wMode, FAR
struct msvideo_thunk* thunk; struct msvideo_thunk* thunk;
EnterCriticalSection(&msvideo_cs); 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))) if ((hic32 = ICOpenFunction(fccType, fccHandler, wMode, IC_Callback3216)))
thunk->hIC16 = HIC_16(hic32); thunk->hIC16 = HIC_16(hic32);
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment