Fix overflow
Some checks failed
Builds / XTchain (minimal, linux) (push) Has been cancelled
Builds / XTchain (minimal, windows) (push) Has been cancelled
Builds / XTchain (full, linux) (push) Has been cancelled
Builds / XTchain (full, windows) (push) Has been cancelled

This commit is contained in:
2025-09-27 17:36:13 +02:00
parent d366c94ac8
commit ca637f057b

View File

@@ -167,7 +167,7 @@ int main(int argc, char *argv[])
fread(&SubSystem, sizeof(unsigned short), 1, ExeFile); fread(&SubSystem, sizeof(unsigned short), 1, ExeFile);
/* 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, -(long)sizeof(unsigned short), SEEK_CUR);
/* Write the new SubSystem value */ /* Write the new SubSystem value */
fwrite(&NewSubSystem->Identifier, sizeof(unsigned short), 1, ExeFile); fwrite(&NewSubSystem->Identifier, sizeof(unsigned short), 1, ExeFile);