Last icon used counts, all others deleted
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2012 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
65e19753ac
commit
54240fcfc6
3 changed files with 20 additions and 13 deletions
|
@ -127,9 +127,14 @@ int replace_icon(CResourceEditor* re, WORD wIconId, char* filename)
|
|||
|
||||
RsrcIconGroupEntry* ige = (RsrcIconGroupEntry*)(rsrcIconGroup + sizeof(IconGroupHeader));
|
||||
|
||||
int i = 1;
|
||||
|
||||
// Delete old icons
|
||||
while (re->UpdateResource(RT_ICON, MAKEINTRESOURCE(i++), MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), 0, 0));
|
||||
|
||||
int iNewIconSize = 0;
|
||||
|
||||
for (int i = 0; i < igh.wCount; i++) {
|
||||
for (i = 0; i < igh.wCount; i++) {
|
||||
fread(ige, sizeof(FileIconGroupEntry)-sizeof(DWORD), 1, f);
|
||||
ige->wRsrcId = i+1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue