瀏覽代碼

ProcessExpressionParameter should Trim.

Previously, these would break empty-string checks and cause an exception:

Components: " "
ArchitecturesAllowed=" "
Jordan Russell 1 年之前
父節點
當前提交
632260c4ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Projects/Src/Compile.pas

+ 1 - 1
Projects/Src/Compile.pas

@@ -2993,7 +2993,7 @@ procedure TSetupCompiler.ProcessExpressionParameter(const ParamName,
 var
   SimpleExpression: TSimpleExpression;
 begin
-  ProcessedParamData := ParamData;
+  ProcessedParamData := Trim(ParamData);
 
   if ProcessedParamData <> '' then begin
     if SlashConvert then