mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 03:30:30 +02:00
Add fallback if GetLastOSError function is not implemented
git-svn-id: trunk@37280 -
This commit is contained in:
parent
de456308c1
commit
6f14241e56
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user