Esme Povirk (@madewokherd) commented about dlls/gdiplus/image.c:
- if (effect->type == RedEyeCorrectionEffect)
 - {
 if ((paramsize-size > 0) || (((size-paramsize)%sizeof(RECT)) != 0))return InvalidParameter;- }
 - else
 - {
 if (paramsize != size)return InvalidParameter;- }
 - if (!effect->params)
 effect->params = malloc(size);- else
 effect->params = realloc(effect->params, size);
The if statement is not needed, `realloc` works in both cases.