mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
28 lines
849 B
Diff
28 lines
849 B
Diff
|
From d386a3724eac666427f7f176e7209f74e1b98885 Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
||
|
Date: Sun, 15 Jan 2017 18:59:10 +0100
|
||
|
Subject: msvideo16: Check if any 16 bit thunks have been allocated before
|
||
|
accessing pointer.
|
||
|
|
||
|
---
|
||
|
dlls/msvideo.dll16/msvideo16.c | 3 +++
|
||
|
1 file changed, 3 insertions(+)
|
||
|
|
||
|
diff --git a/dlls/msvideo.dll16/msvideo16.c b/dlls/msvideo.dll16/msvideo16.c
|
||
|
index 8f02cc1ebc8..5a3b8aa74ee 100644
|
||
|
--- a/dlls/msvideo.dll16/msvideo16.c
|
||
|
+++ b/dlls/msvideo.dll16/msvideo16.c
|
||
|
@@ -762,6 +762,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;
|
||
|
--
|
||
|
2.11.0
|
||
|
|