eliminate extra startup file i/o

git-svn-id: svn://10.0.0.236/trunk@35714 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dveditz%netscape.com 1999-06-16 06:50:37 +00:00
parent 9d8448f9db
commit a59404197c
2 changed files with 2 additions and 11 deletions

View File

@ -3894,7 +3894,6 @@ extern XP_Bool bGlobalRegistry;
VR_INTERFACE(REGERR) NR_StartupRegistry(void)
{
REGERR status = REGERR_OK;
HREG reg;
#ifndef STANDALONE_REGISTRY
if ( reglist_lock == NULL ) {
@ -3916,18 +3915,10 @@ VR_INTERFACE(REGERR) NR_StartupRegistry(void)
if ( regStartCount == 1 )
{
/* first time only initialization */
vr_findGlobalRegName();
/* check to see that we have a valid registry */
/* or create one if it doesn't exist */
if (REGERR_OK == nr_RegOpen("", &reg))
{
nr_RegClose(reg);
}
/* initialization for version registry */
#ifndef STANDALONE_REGISTRY
/* initialization for version registry */
vr_lock = PR_NewLock();
XP_ASSERT( vr_lock != NULL );
#ifdef XP_UNIX

View File

@ -71,7 +71,7 @@ LIBRARY=$(OBJDIR)\$(LIBNAME)_s.lib
#//
#//------------------------------------------------------------------------
LCFLAGS = -DSTANDALONE_REGISTRY
LCFLAGS = $(LCFLAGS) -DSTANDALONE_REGISTRY
LINCS= $(LINCS) -I$(PUBLIC)/libreg \
$(NULL)