[PATCH] gdi32: handle failure in __wine_make_gdi_object_system (Coverity)
Alexandre Julliard
julliard at winehq.org
Tue Feb 10 06:26:40 CST 2009
Marcus Meissner <marcus at 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
julliard at winehq.org
More information about the wine-devel
mailing list