зеркало из https://github.com/mozilla/gecko-dev.git
Fix to larryh's earlier checkin to implement bug #17558. Previous fix from bad diff would always result in an error trying to create a file that already existed (should only be an error in certain cases). r=sfraser
This commit is contained in:
Родитель
d9a983939b
Коммит
887d49e666
|
@ -409,11 +409,11 @@ PRInt32 _MD_Open(const char *path, PRIntn flags, int mode)
|
|||
err = PR_FILE_EXISTS_ERROR;
|
||||
goto ErrorExit;
|
||||
}
|
||||
if (err != noErr)
|
||||
|
||||
if ((err != noErr) && (err != dupFNErr))
|
||||
goto ErrorExit;
|
||||
}
|
||||
|
||||
open:
|
||||
err = PBHOpenDFSync(&hpb);
|
||||
|
||||
if (err != noErr)
|
||||
|
|
Загрузка…
Ссылка в новой задаче