Re: [try 3] [PATCH 03/12] comctl32: Implement Add, ReplaceIcon, GetImageCount, SetImageCount in IImageList
13 Nov
2009
13 Nov
'09
11:18 a.m.
Owen Rudge <orudge(a)codeweavers.com> writes:
@@ -2985,15 +2985,37 @@ static ULONG WINAPI ImageListImpl_Release(IImageList *iface) static HRESULT WINAPI ImageListImpl_Add(IImageList *iface, HBITMAP hbmImage, HBITMAP hbmMask, int *pi) { - FIXME("STUB: %p %p %p %p\n", iface, hbmImage, hbmMask, pi); - return E_NOTIMPL; + HIMAGELIST This = (HIMAGELIST) iface; + int ret; + + if (!This || !hbmImage || !pi) + return E_FAIL;
It doesn't make sense to check the interface pointer, it can't be NULL. Also please don't resend the full series once again, when things don't get committed on the first try you need to proceed in smaller steps. -- Alexandre Julliard julliard(a)winehq.org
5875
Age (days ago)
5875
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard