Marcus Meissner <mar...@jet.franken.de> writes:

> @@ -445,6 +445,11 @@ static const struct DefaultFontInfo default_fonts[] =
>  void CDECL __wine_make_gdi_object_system( HGDIOBJ handle, BOOL set)
>  {
>      GDIOBJHDR *ptr = GDI_GetObjPtr( handle, 0 );
> +
> +    if (!ptr) {
> +        ERR("System object for handle %p not found.\n", handle);
> +        return;
> +    }

That shouldn't happen, it's an internal function and the caller is
supposed to pass a valid handle.

-- 
Alexandre Julliard
julli...@winehq.org


Reply via email to