Re: [PATCH] gdi32: handle failure in __wine_make_gdi_object_system (Coverity)
10 Feb
2009
10 Feb
'09
12:26 p.m.
Marcus Meissner <marcus(a)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(a)winehq.org
6154
Age (days ago)
6154
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard