* minor update of the GetLastOSError support infrastructure

git-svn-id: trunk@29179 -
This commit is contained in:
Tomas Hajny 2014-11-29 01:43:38 +00:00
parent c3fbfcb27b
commit 1dceddc302

View File

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