[PATCH] (resend)comctl32: ILC_COLORDDB imagelists can be created with 0 sizes
Alexandre Julliard
julliard at winehq.org
Thu Nov 19 07:01:40 CST 2015
Aric Stewart <aric at codeweavers.com> writes:
> @@ -776,7 +776,7 @@ ImageList_Create (INT cx, INT cy, UINT flags,
>
> TRACE("(%d %d 0x%x %d %d)\n", cx, cy, flags, cInitial, cGrow);
>
> - if (cx <= 0 || cy <= 0) return NULL;
> + if (!((flags&ILC_COLORDDB) == ILC_COLORDDB) && (cx <= 0 || cy <= 0)) return NULL;
This would need tests for the < 0 case too.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list