зеркало из https://github.com/mozilla/pjs.git
r=mkaply, a=blizzard
Missing MoveToDir implementation on OS/2
This commit is contained in:
Родитель
2c2dba5d5a
Коммит
9bca118c63
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче