mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-26 23:36:32 +00:00
Fix OSFilesMergeInner not using CopyTree for directories.
This commit is contained in:
parent
e2c6bd060e
commit
f43001300e
1 changed files with 8 additions and 1 deletions
|
@ -38,7 +38,14 @@ U0 OSFilesMergeInner(CDirEntry *tmpde1, CDirEntry *tmpde2, I64 *_df_flags)
|
||||||
"$$BROWN$$Does Not Exist:%s$$FG$$\n", tmpde1->full_name;
|
"$$BROWN$$Does Not Exist:%s$$FG$$\n", tmpde1->full_name;
|
||||||
new = StrNew(tmpde1->full_name);
|
new = StrNew(tmpde1->full_name);
|
||||||
new[0] = tmpde2->full_name[0]; // shortcut to quickly get drive letter
|
new[0] = tmpde2->full_name[0]; // shortcut to quickly get drive letter
|
||||||
|
|
||||||
|
if (tmpde1->attr & RS_ATTR_DIR)
|
||||||
|
CopyTree(tmpde1->full_name, new);
|
||||||
|
else
|
||||||
|
{
|
||||||
Copy(tmpde1->full_name, new);
|
Copy(tmpde1->full_name, new);
|
||||||
|
}
|
||||||
|
|
||||||
Free(new);
|
Free(new);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue