Commit c1e40a8b authored by Alexandre Julliard's avatar Alexandre Julliard

shell32: Use a default icon for control panels without one.

parent d4c8f771
......@@ -301,8 +301,10 @@ static void Control_WndProc_Create(HWND hWnd, const CREATESTRUCTW* cs)
if (InsertMenuItemW(hSubMenu, menucount, TRUE, &mii)) {
/* add the list view item */
index = ImageList_AddIcon(panel->hImageListLarge, applet->info[i].icon);
ImageList_AddIcon(panel->hImageListSmall, applet->info[i].icon);
HICON icon = applet->info[i].icon;
if (!icon) icon = LoadImageW( 0, (LPCWSTR)IDI_WINLOGO, IMAGE_ICON, 0, 0, LR_SHARED );
index = ImageList_AddIcon(panel->hImageListLarge, icon);
ImageList_AddIcon(panel->hImageListSmall, icon);
lvItem.mask = LVIF_IMAGE | LVIF_TEXT | LVIF_PARAM;
lvItem.iItem = menucount;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment