mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 22:39:11 +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 GetEnvironmentVariableUTF8(const EnvVar: string): String;
|
||||||
function GetAppConfigDirUTF8(Global: Boolean): string;
|
function GetAppConfigDirUTF8(Global: Boolean): string;
|
||||||
|
|
||||||
|
// other
|
||||||
|
function SysErrorMessageUTF8(ErrorCode: Integer): String;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
|
@ -243,6 +243,11 @@ begin
|
|||||||
Result:=SysToUTF8(SysUtils.GetAppConfigDir(Global));
|
Result:=SysToUTF8(SysUtils.GetAppConfigDir(Global));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function SysErrorMessageUTF8(ErrorCode: Integer): String;
|
||||||
|
begin
|
||||||
|
Result:=SysToUTF8(SysUtils.SysErrorMessage(ErrorCode));
|
||||||
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
DirPathExists
|
DirPathExists
|
||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
|
Loading…
Reference in New Issue
Block a user