From adb48581565a53a1cd12e9d6e9897b6b940b9fe4 Mon Sep 17 00:00:00 2001 From: juha Date: Mon, 11 Aug 2014 11:53:48 +0000 Subject: [PATCH] LazUtils: make CopyDirTree() work also with the "wrong" path delimiter ('/' on Windows). Was broken after r45991 #3e8d8b891e. git-svn-id: trunk@46031 - --- components/lazutils/fileutil.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lazutils/fileutil.inc b/components/lazutils/fileutil.inc index 9bb78a23f1..ea9fe60aea 100644 --- a/components/lazutils/fileutil.inc +++ b/components/lazutils/fileutil.inc @@ -692,8 +692,8 @@ begin Flags:=Flags+[cffCreateDestDirectory]; Searcher.FFlags:=Flags; Searcher.FCopyFailedCount:=0; - Searcher.FSourceDir:=SourceDir; - Searcher.FTargetDir:=TargetDir; + Searcher.FSourceDir:=SetDirSeparators(SourceDir); + Searcher.FTargetDir:=SetDirSeparators(TargetDir); Searcher.Search(SourceDir); Result:=True; finally