FIX: Bug [0001958] Wrong encoding of the system error message in network locations (regression in 0.8)

This commit is contained in:
Alexander Koblov 2017-12-23 07:07:37 +00:00
commit 9554dffd81

View file

@ -1354,7 +1354,10 @@ end;
function mbSysErrorMessage(ErrorCode: Integer): String;
begin
Result := CeSysToUtf8(SysErrorMessage(ErrorCode));
Result := SysErrorMessage(ErrorCode);
{$IF (FPC_FULLVERSION < 30004)}
Result := CeSysToUtf8(Result);
{$ENDIF}
end;
function mbGetModuleName(Address: Pointer): String;