mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 12:23:31 +00:00
[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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user