mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 20:01:50 +00:00
[REACTOS] InitImageList(): Fix error checks
And simplify code a bit.
This commit is contained in:
parent
a120d67d0e
commit
db416e3914
4 changed files with 24 additions and 11 deletions
|
@ -247,8 +247,7 @@ InitImageList(UINT StartResource,
|
|||
LR_LOADTRANSPARENT);
|
||||
if (hImage == NULL)
|
||||
{
|
||||
ImageList_Destroy(himl);
|
||||
himl = NULL;
|
||||
ret = -1;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue