From 96590a6f94190b7d409741da2d9d7dd2a7fffd3a Mon Sep 17 00:00:00 2001 From: Don Ho Date: Tue, 24 May 2022 19:00:52 +0200 Subject: [PATCH] Fix win32 build due to the previous commit --- PowerEditor/src/WinControls/ImageListSet/ImageListSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/WinControls/ImageListSet/ImageListSet.cpp b/PowerEditor/src/WinControls/ImageListSet/ImageListSet.cpp index 334333471..4d8176da6 100644 --- a/PowerEditor/src/WinControls/ImageListSet/ImageListSet.cpp +++ b/PowerEditor/src/WinControls/ImageListSet/ImageListSet.cpp @@ -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);