rv = getInfo();  if( rv == NS_OK ) {  reginfo2DataType( mInfo, *result );
REGINFO info = { sizeof info, 0, 0 }; mErr = NR_RegGetEntryInfo( mReg,(RKEY)baseKey,(char*)path, &info ); if( mErr == REGERR_OK ) {  reginfo2DataType( info, *result ); } else { rv = regerr2nsresult( mErr );
NS_IMETHODIMP nsRegistryValue::GetValueType( uint32 *result ) {    nsresult rv = NS_OK;    // Make sure we have room for th result.    if( result ) {        // Make sure we've got the info we need.        rv = getInfo();        // Check if it worked.        if( rv == NS_OK ) {            // Convert result from REGINFO to nsIRegistry::ValueInfo.            reginfo2DataType( mInfo, *result );        }    } else {        rv = NS_ERROR_NULL_POINTER;    }    return rv;}