gdi32: Don't crash when we don't have AbortProc thunks.
This commit is contained in:
parent
a299470622
commit
9a145d13f1
|
@ -127,6 +127,7 @@ static struct gdi_thunk* GDI_FindThunk(HDC16 hdc)
|
||||||
{
|
{
|
||||||
struct gdi_thunk* thunk;
|
struct gdi_thunk* thunk;
|
||||||
|
|
||||||
|
if (!GDI_Thunks) return NULL;
|
||||||
for (thunk = GDI_Thunks; thunk < &GDI_Thunks[GDI_MAX_THUNKS]; thunk++)
|
for (thunk = GDI_Thunks; thunk < &GDI_Thunks[GDI_MAX_THUNKS]; thunk++)
|
||||||
{
|
{
|
||||||
if (thunk->hdc == hdc) return thunk;
|
if (thunk->hdc == hdc) return thunk;
|
||||||
|
|
Loading…
Reference in New Issue