pulls the right icon now

This commit is contained in:
freedom
2023-10-02 22:29:35 -06:00
parent 99fbc7392c
commit b14c11f98e

View File

@@ -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);