aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo VJ Lahde <timovj.lahde@gmail.com>2010-04-19 16:34:59 +0300
committerTimo VJ Lahde <timovj.lahde@gmail.com>2010-04-19 16:34:59 +0300
commit809f48966258376b41a9ed642bcf0806739aa1f2 (patch)
tree29c2b5b349e266ade839d26a2a501aa15e91c91b
parent2cb1fd6a10796476c4f785de3c03d749427e24d2 (diff)
downloadtinycc-809f48966258376b41a9ed642bcf0806739aa1f2.tar.gz
tinycc-809f48966258376b41a9ed642bcf0806739aa1f2.tar.bz2
WinCE PE subsystem
-rw-r--r--tccpe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tccpe.c b/tccpe.c
index 4497e77..ff5368f 100644
--- a/tccpe.c
+++ b/tccpe.c
@@ -680,6 +680,8 @@ static int pe_write(struct pe_info *pe)
pe_header.filehdr.Characteristics = CHARACTERISTICS_DLL;
else if (PE_GUI != pe->type)
pe_header.opthdr.Subsystem = 3;
+ if (pe->subsystem == 9) // WinCE
+ pe_header.opthdr.Subsystem = 9;
sum = 0;
pe_fwrite(&pe_header, sizeof pe_header, op, &sum);