You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-22 22:17:48 +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:
@ -1379,10 +1379,10 @@ var
|
|||||||
TempName, TempValue : string;
|
TempName, TempValue : string;
|
||||||
begin
|
begin
|
||||||
Result := ptBrowser;
|
Result := ptBrowser;
|
||||||
i := pred(paramCount);
|
i := paramCount;
|
||||||
TempLen := length(TYPE_PARAMETER_NAME);
|
TempLen := length(TYPE_PARAMETER_NAME);
|
||||||
|
|
||||||
while (i >= 0) and (Result = ptBrowser) do
|
while (i >= 1) and (Result = ptBrowser) do
|
||||||
begin
|
begin
|
||||||
TempName := copy(paramstr(i), 1, TempLen);
|
TempName := copy(paramstr(i), 1, TempLen);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user