Minimize exetool's output
Builds / XTChain (push) Failing after 1h9m36s
Details
Builds / XTChain (push) Failing after 1h9m36s
Details
This commit is contained in:
parent
83e84c3ebf
commit
460d5820da
|
@ -138,7 +138,6 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
/* Read the current SubSystem value */
|
/* Read the current SubSystem value */
|
||||||
fread(&SubSystem, sizeof(unsigned short), 1, ExeFile);
|
fread(&SubSystem, sizeof(unsigned short), 1, ExeFile);
|
||||||
printf("Original SubSystem: 0x%04X <%s>\n", SubSystem, getSubSystemName(SubSystem));
|
|
||||||
|
|
||||||
/* Parse the new SubSystem value from the command line argument */
|
/* Parse the new SubSystem value from the command line argument */
|
||||||
NewSubSystem = getSubSystem(argv[2]);
|
NewSubSystem = getSubSystem(argv[2]);
|
||||||
|
@ -150,7 +149,6 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Print new SubSystem identifier */
|
/* Print new SubSystem identifier */
|
||||||
printf("New SubSystem: 0x%04X <%s>\n", NewSubSystem->Identifier, NewSubSystem->Name);
|
|
||||||
|
|
||||||
/* Seek back to the SubSystem field in the optional header */
|
/* Seek back to the SubSystem field in the optional header */
|
||||||
fseek(ExeFile, -sizeof(unsigned short), SEEK_CUR);
|
fseek(ExeFile, -sizeof(unsigned short), SEEK_CUR);
|
||||||
|
@ -162,6 +160,7 @@ int main(int argc, char *argv[])
|
||||||
fclose(ExeFile);
|
fclose(ExeFile);
|
||||||
|
|
||||||
/* Finished successfully */
|
/* Finished successfully */
|
||||||
printf("SubSystem successfully modified!\n");
|
printf("PE SubSystem modified: 0x%04X <%s> to 0x%04X <%s>\n",
|
||||||
|
SubSystem, getSubSystemName(SubSystem), NewSubSystem->Identifier, NewSubSystem->Name);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue