Bläddra i källkod

* minor update of the GetLastOSError support infrastructure

git-svn-id: trunk@29179 -
Tomas Hajny 10 år sedan
förälder
incheckning
1dceddc302
1 ändrade filer med 1 tillägg och 2 borttagningar
  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.