diff --git a/components/codetools/linkscanner.pas b/components/codetools/linkscanner.pas index c9903ebab0..a9e5fd7ac3 100644 --- a/components/codetools/linkscanner.pas +++ b/components/codetools/linkscanner.pas @@ -2384,7 +2384,7 @@ begin while PathEnd<=length(IncludePath) do begin if ((Pos(IncludePath[PathEnd],PathDivider))>0) {$IFDEF win32} - and (not ((PathEnd-PathStart=2) // ignore colon in drive + and (not ((PathEnd-PathStart=1) // ignore colon in drive and (IncludePath[PathEnd]=':') and (IsWordChar[IncludePath[PathEnd-1]]))) {$ENDIF}