Module: wine Branch: master Commit: 9a145d13f1b297f29cb1c0b107d3e05bf8cecebf URL: http://source.winehq.org/git/wine.git/?a=commit;h=9a145d13f1b297f29cb1c0b107...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Nov 17 12:17:37 2009 +0100
gdi32: Don't crash when we don't have AbortProc thunks.
---
dlls/gdi32/gdi16.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/gdi32/gdi16.c b/dlls/gdi32/gdi16.c index 37a15e9..62c9ac6 100644 --- a/dlls/gdi32/gdi16.c +++ b/dlls/gdi32/gdi16.c @@ -127,6 +127,7 @@ static struct gdi_thunk* GDI_FindThunk(HDC16 hdc) { struct gdi_thunk* thunk;
+ if (!GDI_Thunks) return NULL; for (thunk = GDI_Thunks; thunk < &GDI_Thunks[GDI_MAX_THUNKS]; thunk++) { if (thunk->hdc == hdc) return thunk;