if ( name == NULL )
XP_ASSERT( regStartCount > 0 );   err = VERIFY_HREG( hReg ); if ( err != REGERR_OK ) return err;  if ( key == 0 || state == NULL || buffer == NULL )
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;}