gdi32: Don't crash when we don't have AbortProc thunks.

This commit is contained in:
Alexandre Julliard 2009-11-17 12:17:37 +01:00
parent a299470622
commit 9a145d13f1
1 changed files with 1 additions and 0 deletions

View File

@ -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;