no need for iNewIconSize in replace_icon
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4573 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
e63742fbec
commit
476296ded6
1 changed files with 0 additions and 5 deletions
|
@ -157,8 +157,6 @@ void replace_icon(CResourceEditor* re, WORD wIconId, const char* filename)
|
|||
// Delete old icons
|
||||
while (re->UpdateResource(RT_ICON, MAKEINTRESOURCE(i++), NSIS_DEFAULT_LANG, 0, 0));
|
||||
|
||||
int iNewIconSize = 0;
|
||||
|
||||
for (i = 0; i < igh.wCount; i++) {
|
||||
fread(ige, sizeof(FileIconGroupEntry)-sizeof(DWORD), 1, f);
|
||||
ige->wRsrcId = i+1;
|
||||
|
@ -184,9 +182,6 @@ void replace_icon(CResourceEditor* re, WORD wIconId, const char* filename)
|
|||
|
||||
fsetpos(f, &pos);
|
||||
|
||||
// Every icon entry should be 8 aligned
|
||||
iNewIconSize += ((ige->dwRawSize%8 == 0) ? ige->dwRawSize : ige->dwRawSize - (ige->dwRawSize%8) + 8);
|
||||
|
||||
// Seems like the compiler refuses to increase the pointer by just 14.
|
||||
// If you'll replace this line by ige++ you will get unwanted results.
|
||||
ige = (RsrcIconGroupEntry*)((BYTE*)ige + SIZEOF_RSRC_ICON_GROUP_ENTRY);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue