зеркало из https://github.com/mozilla/gecko-dev.git
Create reg file if it doesn't exist
This commit is contained in:
Родитель
e2b02674e1
Коммит
e9f0a653cf
|
@ -369,7 +369,7 @@ static REGERR nr_OpenFile(char *path, FILEHANDLE *fh)
|
||||||
PR_ASSERT( fh != NULL );
|
PR_ASSERT( fh != NULL );
|
||||||
|
|
||||||
/* Open the file for exclusive random read/write */
|
/* Open the file for exclusive random read/write */
|
||||||
(*fh) = PR_Open(path, PR_RDWR, 00700);
|
(*fh) = PR_Open(path, PR_RDWR|PR_CREATE_FILE, 00700);
|
||||||
if ( !VALID_FILEHANDLE(*fh) )
|
if ( !VALID_FILEHANDLE(*fh) )
|
||||||
{
|
{
|
||||||
switch (PR_GetError())
|
switch (PR_GetError())
|
||||||
|
|
Загрузка…
Ссылка в новой задаче