if ( ++regStartCount == 1 )
++regStartCount; if ( regStartCount == 1 )
VR_INTERFACE(REGERR) NR_StartupRegistry(void){    REGERR status = REGERR_OK;    HREG reg;#ifndef STANDALONE_REGISTRY    if ( reglist_lock == NULL ) {        reglist_lock = PR_NewLock();    }    if ( reglist_lock != NULL ) {        PR_Lock( reglist_lock );    }    else {        XP_ASSERT( reglist_lock );        status = REGERR_FAIL;    }#endif    if ( status == REGERR_OK )    {        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            vr_monitor = PR_NewMonitor();            XP_ASSERT( vr_monitor != NULL );#endif #ifdef XP_UNIX            bGlobalRegistry = ( getenv(UNIX_GLOBAL_FLAG) != NULL );#endif        } /* if ( regStartCount == 1 ) */        PR_Unlock( reglist_lock );    }    return status;}   /* NR_StartupRegistry */