Missing MoveToDir implementation on OS/2
This commit is contained in:
mkaply%us.ibm.com 2001-01-31 21:47:40 +00:00
Родитель 2c2dba5d5a
Коммит 9bca118c63
1 изменённых файлов: 1 добавлений и 8 удалений

Просмотреть файл

@ -705,14 +705,7 @@ nsresult nsFileSpec::MoveToDir(const nsFileSpec& inNewParentDirectory)
destPath += leafname;
nsCRT::free(leafname);
// MoveFile returns non-zero if succeeds
#ifdef XP_OS2
int copyOK = 0;
#else
int copyOK = MoveFile(GetCString(), destPath);
#endif
if (copyOK)
if (DosMove(GetCString(), destPath) == NO_ERROR)
{
*this = inNewParentDirectory + GetLeafName();
return NS_OK;