mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 23:10: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;
|
||||
new = StrNew(tmpde1->full_name);
|
||||
new[0] = tmpde2->full_name[0]; // shortcut to quickly get drive letter
|
||||
Copy(tmpde1->full_name, new);
|
||||
|
||||
if (tmpde1->attr & RS_ATTR_DIR)
|
||||
CopyTree(tmpde1->full_name, new);
|
||||
else
|
||||
{
|
||||
Copy(tmpde1->full_name, new);
|
||||
}
|
||||
|
||||
Free(new);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue