Commit 9a145d13 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent a2994706
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment