From b14c11f98eb6c49e7e4efb11fd52307e19e12029 Mon Sep 17 00:00:00 2001 From: freedom Date: Mon, 2 Oct 2023 22:29:35 -0600 Subject: [PATCH] pulls the right icon now --- progmgr/dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progmgr/dialog.c b/progmgr/dialog.c index 6791b97..51bdac1 100644 --- a/progmgr/dialog.c +++ b/progmgr/dialog.c @@ -329,7 +329,7 @@ BOOL CALLBACK NewItemDlgProc(HWND hWndDlg, UINT message, WPARAM wParam, LPARAM l { // file contains at least one icon, set the itm struct values StringCchCopy(itm.szIconPath, ARRAYSIZE(itm.szIconPath), szFileBuffer); - itm.iIconIndex = 1; + itm.iIconIndex = 0; // update icon hIconDlg = ExtractIcon(hAppInstance, (LPWSTR)itm.szIconPath, itm.iIconIndex);