From 809f48966258376b41a9ed642bcf0806739aa1f2 Mon Sep 17 00:00:00 2001 From: Timo VJ Lahde Date: Mon, 19 Apr 2010 16:34:59 +0300 Subject: [PATCH] WinCE PE subsystem --- tccpe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tccpe.c b/tccpe.c index 4497e773..ff5368f0 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);