[SETUPAPI]

there are three overlay icons
ImageList_SetOverlayImage expects an overlay index based on 1

svn path=/trunk/; revision=68006
This commit is contained in:
Christoph von Wittich 2015-06-04 08:29:55 +00:00
parent 6844f1e037
commit 10ca80e69e

View file

@ -697,14 +697,14 @@ SetupDiGetClassImageListExW(
}
/* Finally, add the overlay icons to the image list */
for (i = 0; i < 2; i++)
for (i = 0; i <= 2; i++)
{
hIcon = LoadImage(hInstance, MAKEINTRESOURCE(500 + i), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR);
if (hIcon)
{
idx = ImageList_AddIcon(ClassImageListData->ImageList, hIcon);
if (idx != -1)
ImageList_SetOverlayImage(ClassImageListData->ImageList, idx, i);
ImageList_SetOverlayImage(ClassImageListData->ImageList, idx, i + 1);
DestroyIcon(hIcon);
}
}