Browse Source

* Also assign the ErrorCode variable, which is being checked by some tests like test/tstack.pp.

git-svn-id: trunk@33419 -
sergei 9 years ago
parent
commit
f73b3c6e4b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      rtl/win64/seh64.inc

+ 1 - 0
rtl/win64/seh64.inc

@@ -410,6 +410,7 @@ begin
           Writeln(hstdout^,BackTraceStrFunc(Exc^.Frames[i]));
       end;
       Writeln(hstdout^,'');
+      ErrorCode:=word(code);
       Halt(code);
     end
     else