mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +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:
parent
6844f1e037
commit
10ca80e69e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue