mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 22:32:29 +02:00
* No SysErrorMessage on WinCE ?
git-svn-id: trunk@21935 -
This commit is contained in:
parent
f5e36a8510
commit
78bfc145c1
@ -65,13 +65,7 @@ Var
|
|||||||
rc : integer;
|
rc : integer;
|
||||||
begin
|
begin
|
||||||
rc := GetLastError;
|
rc := GetLastError;
|
||||||
try
|
str(rc,result);
|
||||||
result := Trim(SysErrorMessage(rc));
|
|
||||||
if (result='') then
|
|
||||||
result := 'Operating system error 0x' + IntToHex(rc, 8) + ' (no descriptive text)'
|
|
||||||
except
|
|
||||||
result := 'Operating system error 0x' + IntToHex(rc, 8) + ' (error getting descriptive text)'
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$endif}
|
{$endif}
|
||||||
|
Loading…
Reference in New Issue
Block a user