[OS/2] Bug 403989: fix file saving issues by backing out OS/2 part of patch from bug 402460, r=mkaply

This commit is contained in:
mozilla@weilbacher.org 2007-11-16 16:16:35 -08:00
parent c1be16ac17
commit 316c205d89

View File

@ -838,7 +838,7 @@ nsLocalFile::Create(PRUint32 type, PRUint32 attributes)
{ {
PRFileDesc* file = PR_Open(mWorkingPath.get(), PR_RDONLY | PR_CREATE_FILE | PR_APPEND | PR_EXCL, attributes); PRFileDesc* file = PR_Open(mWorkingPath.get(), PR_RDONLY | PR_CREATE_FILE | PR_APPEND | PR_EXCL, attributes);
if (!file) if (!file)
return NS_ErrorAccordingToNSPR(); return NS_ERROR_FILE_ALREADY_EXISTS;
PR_Close(file); PR_Close(file);
return NS_OK; return NS_OK;