1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-04-07 06:50:04 +02:00

Fix ProcessType parameter parsing.

ParamStr() uses 0..ParamCount where 0 is the executable filename, 1 is the first and ParamCount is the last parameter.
This commit is contained in:
Andreas Hausladen 2019-11-08 23:32:00 +01:00
parent 427059dd9a
commit 3e9c5c4017

View File

@ -1379,10 +1379,10 @@ var
TempName, TempValue : string;
begin
Result := ptBrowser;
i := pred(paramCount);
i := paramCount;
TempLen := length(TYPE_PARAMETER_NAME);
while (i >= 0) and (Result = ptBrowser) do
while (i >= 1) and (Result = ptBrowser) do
begin
TempName := copy(paramstr(i), 1, TempLen);