Fix #316690. Reviewed/approved aoki (in veditz's absence). Fix hard coded reference to "Netscape Registry" so that Mozilla uses its own "Navigator Regsitry".

git-svn-id: svn://10.0.0.236/trunk@9060 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sdagley%netscape.com
1998-09-01 23:44:31 +00:00
parent c90e52b4c2
commit f6180ffc6f

View File

@@ -30,6 +30,11 @@
#include "vr_stubs.h"
#ifdef XP_MAC
#ifndef theRegistry
#define theRegistry 33 /* Duplicated from uprefd.h. I know this is a bad thing to do but you */
/* don't even want to know what including that would do since it's a */
/* header for a C++ file */
#endif /* theRegistry */
#include <Folders.h>
#include <Script.h>
#include <stdlib.h>
@@ -135,12 +140,15 @@ extern XP_File VR_StubOpen (const char *mode)
Handle thePath;
int bCreate = 0;
Ptr finalPath;
Str255 registryName;
err = FindFolder(kOnSystemDisk,'pref', false, &foundVRefNum, &foundDirID);
if (!err) {
GetIndString(registryName, 300, theRegistry);
err = FSMakeFSSpec(foundVRefNum, foundDirID, "\pNetscape Registry", &regSpec);
err = FSMakeFSSpec(foundVRefNum, foundDirID, registryName, &regSpec);
if (err == -43) { /* if file doesn't exist */
err = FSpCreate(&regSpec, ' ', ' ', smSystemScript);