-
-
Notifications
You must be signed in to change notification settings - Fork 322
Closed
Labels
Description
cTools.pas
function ExpandEnv(const Str: string): string;
var
Res: array[0..High(SmallInt)] of WideChar; // MAX_PATH -> High(SmallInt)
begin
ExpandEnvironmentStringsW(PWideChar(Str), @res, High(SmallInt)); // MAX_PATH -> High(SmallInt)
Result := Res;
end;
When using a long Tools command line, exceeding this range will cause command execution to fail, so you need to specify a larger value. For example, if there is a PyInstaller command line in Tools, MAX_PATH may cause execution to fail.