Explorar o código

* minor update of the GetLastOSError support infrastructure

git-svn-id: trunk@29179 -
Tomas Hajny %!s(int64=10) %!d(string=hai) anos
pai
achega
1dceddc302
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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.