Преглед изворни кода

* fix for 11099

git-svn-id: trunk@10605 -
marco пре 17 година
родитељ
комит
99c4e92735
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      rtl/objpas/sysutils/sysformt.inc

+ 4 - 1
rtl/objpas/sysutils/sysformt.inc

@@ -58,7 +58,10 @@ Var ChPos,OldPos,ArgPos,DoArg,Len : SizeInt;
     Procedure ReadIndex;
 
     begin
-      ReadInteger;
+      If Fmt[ChPos]<>':' then
+        ReadInteger
+      else
+        value:=0; // Delphi undocumented behaviour, assume 0, #11099
       If Fmt[ChPos]=':' then
         begin
         If Value=-1 then DoFormatError(feMissingArgument);