mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
Update icon.c
This commit is contained in:
parent
b163b3dfe2
commit
da20b88ec6
1 changed files with 2 additions and 1 deletions
|
@ -118,6 +118,7 @@ BOOL ExtractAppIcon(const char* path, BOOL bSilent)
|
||||||
// Write icon data
|
// Write icon data
|
||||||
offset = 3*sizeof(WORD) + icondir->idCount*sizeof(ICONDIRENTRY);
|
offset = 3*sizeof(WORD) + icondir->idCount*sizeof(ICONDIRENTRY);
|
||||||
for (i=0; i<icondir->idCount; i++) {
|
for (i=0; i<icondir->idCount; i++) {
|
||||||
|
|
||||||
// Write the common part of ICONDIRENTRY
|
// Write the common part of ICONDIRENTRY
|
||||||
if (!WriteFileWithRetry(hFile, &icondir->idEntries[i], sizeof(GRPICONDIRENTRY)-sizeof(WORD), &Size, WRITE_RETRIES)) {
|
if (!WriteFileWithRetry(hFile, &icondir->idEntries[i], sizeof(GRPICONDIRENTRY)-sizeof(WORD), &Size, WRITE_RETRIES)) {
|
||||||
uprintf("Could not write ICONDIRENTRY[%d]: %s.", i, WindowsErrorString());
|
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,
|
* 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
|
* in the case of FAT, contain non-English characters
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue