mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 11:58:12 +02:00
LCL: added SysErrorMessageUTF8
git-svn-id: trunk@16657 -
This commit is contained in:
parent
0f1e56d462
commit
46f03b20ca
@ -216,6 +216,9 @@ function GetEnvironmentStringUTF8(Index: Integer): string;
|
||||
function GetEnvironmentVariableUTF8(const EnvVar: string): String;
|
||||
function GetAppConfigDirUTF8(Global: Boolean): string;
|
||||
|
||||
// other
|
||||
function SysErrorMessageUTF8(ErrorCode: Integer): String;
|
||||
|
||||
implementation
|
||||
|
||||
uses
|
||||
|
@ -243,6 +243,11 @@ begin
|
||||
Result:=SysToUTF8(SysUtils.GetAppConfigDir(Global));
|
||||
end;
|
||||
|
||||
function SysErrorMessageUTF8(ErrorCode: Integer): String;
|
||||
begin
|
||||
Result:=SysToUTF8(SysUtils.SysErrorMessage(ErrorCode));
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
DirPathExists
|
||||
------------------------------------------------------------------------------}
|
||||
|
Loading…
Reference in New Issue
Block a user