Code enhancement: fix a logic error - va_end missing

Fix #14071
This commit is contained in:
Don Ho 2023-09-01 01:32:07 +02:00
parent 5402622abc
commit fb1985defc
1 changed files with 3 additions and 0 deletions

View File

@ -285,7 +285,10 @@ BOOL TreeView::setImageList(int w, int h, int nbImage, int image_id, ...)
hbmp = (HBITMAP)::LoadImage(_hInst, MAKEINTRESOURCE(imageID), IMAGE_BITMAP, bmDpiDynW, bmDpiDynH, 0);
if (hbmp == NULL)
{
va_end(argLst);
return FALSE;
}
ImageList_AddMasked(_hImaLst, hbmp, maskColour);
DeleteObject(hbmp);
}