Author: cwittich
Date: Thu Jun 4 08:29:55 2015
New Revision: 68006
URL:
http://svn.reactos.org/svn/reactos?rev=68006&view=rev
Log:
[SETUPAPI]
there are three overlay icons
ImageList_SetOverlayImage expects an overlay index based on 1
Modified:
trunk/reactos/dll/win32/setupapi/devclass.c
Modified: trunk/reactos/dll/win32/setupapi/devclass.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/devclas…
==============================================================================
--- trunk/reactos/dll/win32/setupapi/devclass.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/setupapi/devclass.c [iso-8859-1] Thu Jun 4 08:29:55 2015
@@ -697,14 +697,14 @@
}
/* 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);
}
}