* Fix compilation in unicode RTL

This commit is contained in:
Michaël Van Canneyt 2024-03-19 10:38:59 +01:00
parent c52794f943
commit 628e0cdbd1
2 changed files with 5 additions and 5 deletions

View File

@ -111,7 +111,7 @@ var
alloweddetaillevel : integer = 0; // show if msg.detaillevel<=allowdetaillevel
htmlscan : THtmlScanEnum = Scandefault;
procedure OnError (Project: TChmProject;errorkind:TChmProjectErrorKind;msg:String;detailevel:integer=0);
procedure OnError (Project: TChmProject;errorkind:TChmProjectErrorKind;msg:rtlString;detailevel:integer=0);
begin
if (detailevel<=alloweddetaillevel) or (errorkind < chmnote) then
if errorkind<>chmnone then

View File

@ -49,14 +49,14 @@ type
count : integer;
donotpage: boolean;
nameonly : boolean;
procedure OnFileEntry(Name: String; Offset, UncompressedSize, ASection: Integer);
procedure OnFileEntry(Name: RTLString; Offset, UncompressedSize, ASection: Integer);
end;
TExtractAllObject = class
basedir : string;
r : TChmReader;
lastone_was_point : boolean;
procedure OnFileEntry(Name: String; Offset, UncompressedSize, ASection: Integer);
procedure OnFileEntry(Name: RTLString; Offset, UncompressedSize, ASection: Integer);
end;
Type
@ -197,7 +197,7 @@ end;
var donotshowoffset : boolean=false;
procedure TListObject.OnFileEntry(Name: String; Offset, UncompressedSize,
procedure TListObject.OnFileEntry(Name: RTLString; Offset, UncompressedSize,
ASection: Integer);
begin
Inc(Count);
@ -225,7 +225,7 @@ begin
WriteLn(Name);
end;
procedure TExtractAllObject.OnFileEntry(Name: String; Offset, UncompressedSize,
procedure TExtractAllObject.OnFileEntry(Name: RTLString; Offset, UncompressedSize,
ASection: Integer);
var mem : TMemoryStream;
s : String;