msvideo.dll16: Check if any 16 bit thunks have been allocated before accessing pointer.
Signed-off-by: Michael Müller <michael@fds-team.de> Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
beab000a53
commit
ea7cc6fc55
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue