Browse Source

* ensure that exitcode is 0 at start

git-svn-id: trunk@3144 -
florian 19 years ago
parent
commit
6df561bd95
1 changed files with 1 additions and 0 deletions
  1. 1 0
      rtl/win64/system.pp

+ 1 - 0
rtl/win64/system.pp

@@ -398,6 +398,7 @@ procedure Exe_entry;[public,alias:'_FPC_EXE_Entry'];
      install_exception_handlers;
      install_exception_handlers;
      { This strange construction is needed to solve the _SS problem
      { This strange construction is needed to solve the _SS problem
        with a smartlinked syswin32 (PFV) }
        with a smartlinked syswin32 (PFV) }
+     ExitCode:=0;
      asm
      asm
          { allocate space for an exception frame }
          { allocate space for an exception frame }
         pushl $0
         pushl $0