[PATCH 2/2] gdiplus: Validate window handle in has_gdi_dc