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;
|
||||
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);
|
||||
|
||||
|
Reference in New Issue
Block a user