FIX: DialogBoxParam function

This commit is contained in:
Alexander Koblov 2024-05-05 00:32:40 +03:00
commit 8ea19a565c
2 changed files with 5 additions and 5 deletions

View file

@ -236,13 +236,13 @@ begin
if (DataSize = 0) then Exit(0);
SetString(DataString, Data, DataSize);
if (Flags and DB_LRS = 0) then
begin
DataString:= LFMToLRS(DataString);
end
else if (Flags and DB_FILENAME <> 0) then
if (Flags and DB_FILENAME <> 0) then
begin
DataString:= LFMToLRS(mbReadFileToString(DataString));
end
else if (Flags and DB_LRS = 0) then
begin
DataString:= LFMToLRS(DataString);
end;
Result:= UIntPtr(DialogBox(DataString, DlgProc, UserData));

View file

@ -75,7 +75,7 @@ end;
procedure TDcxModule.InitializeExtension(StartupInfo: PExtensionStartupInfo);
const
VERSION_API = 3;
VERSION_API = 4;
var
Language: String;
AFileName, APath: String;