瀏覽代碼

* Fix option character test (bug ID 36438)

git-svn-id: trunk@43680 -
michael 5 年之前
父節點
當前提交
a3871b0a87
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/fcl-base/src/custapp.pp

+ 1 - 1
packages/fcl-base/src/custapp.pp

@@ -394,7 +394,7 @@ begin
   else
     begin // short options have form '-o value'
     If (AIndex<ParamCount) then
-      if (Copy(Params[AIndex+1],1,1)<>'-') then
+      if (Copy(Params[AIndex+1],1,1)<>OptionChar) then
         Result:=Params[AIndex+1];
     end;
   end;