mirror of
https://github.com/frida/tinycc
synced 2025-01-12 22:59:25 +03:00
WinCE PE subsystem
This commit is contained in:
parent
2cb1fd6a10
commit
809f489662
2
tccpe.c
2
tccpe.c
@ -680,6 +680,8 @@ static int pe_write(struct pe_info *pe)
|
|||||||
pe_header.filehdr.Characteristics = CHARACTERISTICS_DLL;
|
pe_header.filehdr.Characteristics = CHARACTERISTICS_DLL;
|
||||||
else if (PE_GUI != pe->type)
|
else if (PE_GUI != pe->type)
|
||||||
pe_header.opthdr.Subsystem = 3;
|
pe_header.opthdr.Subsystem = 3;
|
||||||
|
if (pe->subsystem == 9) // WinCE
|
||||||
|
pe_header.opthdr.Subsystem = 9;
|
||||||
|
|
||||||
sum = 0;
|
sum = 0;
|
||||||
pe_fwrite(&pe_header, sizeof pe_header, op, &sum);
|
pe_fwrite(&pe_header, sizeof pe_header, op, &sum);
|
||||||
|
Loading…
Reference in New Issue
Block a user