Re: comctl32: Don't crash when getting a bad image list handle.
19 Sep
2011
19 Sep
'11
noon
Francois Gouget <fgouget(a)codeweavers.com> writes:
@@ -3587,7 +3588,15 @@ static const IImageListVtbl ImageListImpl_Vtbl = {
static inline BOOL is_valid(HIMAGELIST himl) { - return himl && himl->lpVtbl == &ImageListImpl_Vtbl; + __TRY + { + return himl && himl->lpVtbl == &ImageListImpl_Vtbl; + } + __EXCEPT_PAGE_FAULT + { + return FALSE; + } + __ENDTRY
You can't return from a __TRY block. -- Alexandre Julliard julliard(a)winehq.org
5199
Age (days ago)
5199
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard