Fix win32 build due to the previous commit

This commit is contained in:
Don Ho 2022-05-24 19:00:52 +02:00
parent d85b9a7464
commit 96590a6f94
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ bool IconList::changeIcon(size_t index, const TCHAR *iconLocation) const
HBITMAP hBmp = (HBITMAP)::LoadImage(_hInst, iconLocation, IMAGE_ICON, _iconSize, _iconSize, LR_LOADFROMFILE | LR_LOADMAP3DCOLORS | LR_LOADTRANSPARENT);
if (!hBmp)
return false;
int i = ImageList_ReplaceIcon(_hImglst, int(index), (HICON)hBmp);
size_t i = ImageList_ReplaceIcon(_hImglst, int(index), (HICON)hBmp);
ImageList_AddMasked(_hImglst, (HBITMAP)hBmp, RGB(255,0,255));
::DeleteObject(hBmp);
return (i == index);