Esme Povirk (@madewokherd) commented about dlls/gdiplus/image.c:
- else if (IsEqualGUID(&guid, &ColorBalanceEffectGuid))
- {
ef->type = ColorBalanceEffect;
- }
- else if (IsEqualGUID(&guid, &LevelsEffectGuid))
- {
ef->type = LevelsEffect;
- }
- else if (IsEqualGUID(&guid, &ColorCurveEffectGuid))
- {
ef->type = ColorCurveEffect;
- }
- else
- {
ef->type = NoneEffect;
status = Win32Error;
An object shouldn't be returned in case of error.