mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
[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:
parent
c1be16ac17
commit
316c205d89
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user