if ( err == REGERR_OK ) { reg->rkeys.versions = key; }
if ( err != REGERR_OK ) return err; reg->rkeys.versions = key;
static void   nr_InitStdRkeys( REGFILE *reg ){    REGERR      err;    RKEY        key;    XP_ASSERT( reg != NULL );    /* initialize to invalid key values */    memset( &reg->rkeys, 0, sizeof(STDNODES) );    /* Add each key before looking it up.  Adding an already     * existing key is harmless, and these MUST exist.     */    /* ROOTKEY_USERS */    err = nr_RegAddKey( reg, reg->hdr.root, ROOTKEY_USERS_STR, &key, FALSE );    if ( err == REGERR_OK ) {        reg->rkeys.users = key;    }    /* ROOTKEY_COMMON */    err = nr_RegAddKey( reg, reg->hdr.root, ROOTKEY_COMMON_STR, &key, FALSE );    if ( err == REGERR_OK ) {        reg->rkeys.common = key;    }    /* ROOTKEY_VERSIONS */    err = nr_RegAddKey( reg, reg->hdr.root, ROOTKEY_VERSIONS_STR, &key, FALSE );    if ( err == REGERR_OK ) {        reg->rkeys.versions = key;    }    /* ROOTKEY_CURRENT_USER */	/* delay until first use -- see nr_TranslateKey */    /* ROOTKEY_PRIVATE */    err = nr_RegAddKey( reg, reg->hdr.root, ROOTKEY_PRIVATE_STR, &key, FALSE );    if ( err == REGERR_OK ) {        reg->rkeys.privarea = key;    }}   /* nr_InitStdRkeys */