Create reg file if it doesn't exist

git-svn-id: svn://10.0.0.236/trunk@22027 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
law%netscape.com
1999-02-26 02:17:37 +00:00
parent 56dbfedf7b
commit ad76645726

View File

@@ -369,7 +369,7 @@ static REGERR nr_OpenFile(char *path, FILEHANDLE *fh)
PR_ASSERT( fh != NULL );
/* 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) )
{
switch (PR_GetError())