Update icon.c

This commit is contained in:
itsrustycode 2023-02-13 15:53:58 -07:00 committed by GitHub
parent b163b3dfe2
commit da20b88ec6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -118,6 +118,7 @@ BOOL ExtractAppIcon(const char* path, BOOL bSilent)
// Write icon data
offset = 3*sizeof(WORD) + icondir->idCount*sizeof(ICONDIRENTRY);
for (i=0; i<icondir->idCount; i++) {
// Write the common part of ICONDIRENTRY
if (!WriteFileWithRetry(hFile, &icondir->idEntries[i], sizeof(GRPICONDIRENTRY)-sizeof(WORD), &Size, WRITE_RETRIES)) {
uprintf("Could not write ICONDIRENTRY[%d]: %s.", i, WindowsErrorString());
@ -151,7 +152,7 @@ out:
}
/*
* Create an autorun.inf, if none exists
Create an autorun.inf, if none exists
* We use this to set the icon as well as labels that are longer than 11/32 chars or,
* in the case of FAT, contain non-English characters
*/