mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 03:49:37 +00:00
Fix #316690. Reviewed/approved aoki (in veditz's absence). Fix hard coded reference to "Netscape Registry" so that Mozilla uses its own "Navigator Regsitry".
This commit is contained in:
parent
2dcc8bf3de
commit
d89a14d2df
@ -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", ®Spec);
|
||||
err = FSMakeFSSpec(foundVRefNum, foundDirID, registryName, ®Spec);
|
||||
|
||||
if (err == -43) { /* if file doesn't exist */
|
||||
err = FSpCreate(®Spec, ' ', ' ', smSystemScript);
|
||||
|
Loading…
x
Reference in New Issue
Block a user