diff --git a/components/lazutils/winlazfileutils.inc b/components/lazutils/winlazfileutils.inc index e24b97018f..4429fb87a7 100644 --- a/components/lazutils/winlazfileutils.inc +++ b/components/lazutils/winlazfileutils.inc @@ -545,7 +545,7 @@ begin //See: http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx if (Length(Fn) > 3) and (Fn[1] = PathDelim) and (Fn[2] = PathDelim) and (Fn[3] = '?') and (Fn[4] = PathDelim) //Do NOT use AllowDirectorySeparators here! - then Exit; + then Exit(Fn); ForcePathDelims(Fn); IsAbs := FileNameIsWinAbsolute(Fn); if not IsAbs then