Use the correct param for the full_new path.

This fixes the broken downloads.

*taniwha dons a brown paper bag.
This commit is contained in:
Bill Currie 2010-12-28 10:28:46 +09:00 committed by Jeff Teunissen
parent 6e18c3df85
commit 3090a64faa

View file

@ -1447,9 +1447,11 @@ QFS_Rename (const char *old_path, const char *new_path)
int ret;
if ((ret = qfs_expand_userpath (full_old, old_path)) != -1)
if ((ret = qfs_expand_userpath (full_new, old_path)) != -1)
if ((ret = Sys_CreatePath (full_new->str)) != -1)
if ((ret = qfs_expand_userpath (full_new, new_path)) != -1)
if ((ret = Sys_CreatePath (full_new->str)) != -1) {
Sys_Printf ("QFS_Rename %s %s\n", full_old->str, full_new->str);
ret = Qrename (full_old->str, full_new->str);
}
dstring_delete (full_old);
dstring_delete (full_new);
return ret;