Add fallback if GetLastOSError function is not implemented

git-svn-id: trunk@37280 -
This commit is contained in:
pierre 2017-09-20 16:02:47 +00:00
parent de456308c1
commit 6f14241e56

View File

@ -189,7 +189,11 @@ begin
{$IFDEF OS2}
FLastError := PLocalEventRec (Handle)^.FLastError;
{$ELSE OS2}
{$if defined(getlastoserror)}
FLastError := GetLastOSError;
{$else}
FLastError:=-1;
{$endif}
{$ENDIF OS2}
end;