From f6180ffc6f436e266531b76acf780a464883b322 Mon Sep 17 00:00:00 2001 From: "sdagley%netscape.com" Date: Tue, 1 Sep 1998 23:44:31 +0000 Subject: [PATCH] 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 --- mozilla/modules/libreg/src/vr_stubs.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mozilla/modules/libreg/src/vr_stubs.c b/mozilla/modules/libreg/src/vr_stubs.c index 5e3168f3a9c..e3f05bf9d25 100644 --- a/mozilla/modules/libreg/src/vr_stubs.c +++ b/mozilla/modules/libreg/src/vr_stubs.c @@ -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 #include #include @@ -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", ®Spec); + err = FSMakeFSSpec(foundVRefNum, foundDirID, registryName, ®Spec); if (err == -43) { /* if file doesn't exist */ err = FSpCreate(®Spec, ' ', ' ', smSystemScript);