[REACTOS] InitImageList(): Fix error checks

And simplify code a bit.
This commit is contained in:
Serge Gautherie 2020-11-12 01:22:46 +01:00 committed by George Bișoc
parent a120d67d0e
commit db416e3914
4 changed files with 24 additions and 11 deletions

View file

@ -247,8 +247,7 @@ InitImageList(UINT StartResource,
LR_LOADTRANSPARENT);
if (hImage == NULL)
{
ImageList_Destroy(himl);
himl = NULL;
ret = -1;
break;
}