return REGERR_OK; }
if ( err == REGERR_OK ) {  *state = desc.location;   if ( info != NULL && info->size >= sizeof(REGINFO) ) { info->entryType   = desc.type; info->entryLength = desc.valuelen; } } }   nr_Unlock( reg );  return err;  }
VR_INTERFACE(REGERR) NR_RegGetUsername(char **name){    /* XXX: does this need locking? */    if ( name == NULL )        return REGERR_PARAM;    *name = XP_STRDUP(nr_GetUsername());    if ( NULL == *name )        return REGERR_MEMORY;    return REGERR_OK;}