ide: Fixed patch with single file, fixed problem with 'warning' in the id in error outpur

git-svn-id: svn://ultimatepp.org/upp/trunk@13933 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-01-22 13:07:52 +00:00
parent 9411554d8d
commit 26949fcca1
3 changed files with 13 additions and 9 deletions

View file

@ -76,7 +76,7 @@ PatchDiff::PatchDiff()
Title("Patch");
}
bool PatchDiff::Open(const char *patch_path, const Vector<String>& target_dirs)
bool PatchDiff::Open(const char *patch_path, const Vector<String>& target_dirs0)
{
failed_count = 0;
list.Clear();
@ -84,6 +84,11 @@ bool PatchDiff::Open(const char *patch_path, const Vector<String>& target_dirs)
ShowResult();
patch_file <<= Null;
target_dir <<= Null;
Vector<String> target_dirs;
for(String s : target_dirs0)
target_dirs.Add(UnixPath(s));
DDUMP(target_dirs);
Progress pi;
if(!patch.Load(patch_path, pi)) {