浏览代码

* minor update of the GetLastOSError support infrastructure

git-svn-id: trunk@29179 -
Tomas Hajny 10 年之前
父节点
当前提交
1dceddc302
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      rtl/os2/sysutils.pp

+ 1 - 2
rtl/os2/sysutils.pp

@@ -977,8 +977,7 @@ Initialization
   InitInternational;    { Initialize internationalization settings }
   OnBeep:=@SysBeep;
   LastOSError := 0;
-  OrigOSErrorWatch := OSErrorWatch;
-  SetOSErrorTracking (@TrackLastOSError);
+  OrigOSErrorWatch := TOSErrorWatch (SetOSErrorTracking (@TrackLastOSError));
 Finalization
   DoneExceptions;
 end.