浏览代码

* restored old default values for MajorOperatingSystemVersion, MajorSubsystemVersion and MinorSubsystemVersion, resolves issue #32492

git-svn-id: trunk@37381 -
florian 7 年之前
父节点
当前提交
99a3855e6b
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      compiler/ogcoff.pas

+ 3 - 3
compiler/ogcoff.pas

@@ -2628,7 +2628,7 @@ const pemagic : array[0..3] of byte = (
               end
             else
               begin
-                peoptheader.MajorOperatingSystemVersion:=10;
+                peoptheader.MajorOperatingSystemVersion:=4;
                 peoptheader.MinorOperatingSystemVersion:=0;
               end;
             if SetPEUserVersionSetExplicitely then
@@ -2651,8 +2651,8 @@ const pemagic : array[0..3] of byte = (
                 if target_info.system in systems_wince then
                   peoptheader.MajorSubsystemVersion:=3
                 else
-                  peoptheader.MajorSubsystemVersion:=6;
-                peoptheader.MinorSubsystemVersion:=2;
+                  peoptheader.MajorSubsystemVersion:=4;
+                peoptheader.MinorSubsystemVersion:=0;
               end;
             peoptheader.Win32Version:=0;
             peoptheader.SizeOfImage:=Align(CurrMemPos,SectionMemAlign);