mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:40:51 +00:00
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
|
@ -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…
Reference in a new issue