Commit ea7cc6fc authored by Michael Müller's avatar Michael Müller Committed by Alexandre Julliard

msvideo.dll16: Check if any 16 bit thunks have been allocated before accessing pointer.

parent beab000a
......@@ -771,6 +771,9 @@ static struct msvideo_thunk* MSVIDEO_HasThunk(HIC16 hic)
{
struct msvideo_thunk* thunk;
if (!MSVIDEO_Thunks)
return NULL;
for (thunk = MSVIDEO_Thunks; thunk < &MSVIDEO_Thunks[MAX_THUNKS]; thunk++)
{
if (thunk->hIC16 == hic) return thunk;
......
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