IDE: fixed range check errors (bug #11533)

git-svn-id: trunk@15545 -
This commit is contained in:
vincents 2008-06-23 15:01:40 +00:00
parent ad5b5a5a70
commit 342cddf066
3 changed files with 3 additions and 3 deletions

View File

@ -237,7 +237,7 @@ var
CurPath: String;
begin
Result:=mrOk;
p:=0;
p:=1;
repeat
CurPath:=GetNextDirectoryInSearchPath(ExpandedPath,p);
if (CurPath<>'') and (not IDEMacros.StrHasMacros(CurPath))

View File

@ -1570,7 +1570,7 @@ begin
// check for non existing directories
if ord(Level)<=ord(ccomlWarning) then begin
p:=0;
p:=1;
repeat
//DebugLn(['CheckSearchPath ',ExpandedPath,' ',p,' ',length(ExpandedPath)]);
CurPath:=GetNextDirectoryInSearchPath(ExpandedPath,p);

View File

@ -728,7 +728,7 @@ function TfrmCompilerOptionsNew.PutCompilerOptions(
+'Lazarus uses this as normal character and does not expand them as file mask.',
mtWarning,[mbOk,mbCancel],0) <> mrOk then exit;
end;
p:=0;
p:=1;
repeat
//DebugLn(['CheckSearchPath ',ExpandedPath,' ',p,' ',length(ExpandedPath)]);
CurPath:=GetNextDirectoryInSearchPath(ExpandedPath,p);