mErr = NR_RegGetEntry( mReg,(RKEY)baseKey,(char*)path, result, len );
*result = PR_Malloc(*len); mErr = NR_RegGetEntry( mReg,(RKEY)baseKey,(char*)path, *result, len );
NS_IMETHODIMP nsRegistry::GetBytes( Key baseKey, const char *path, void **result, uint32 *len ) {    nsresult rv = NS_OK;    // Make sure caller gave us place for result.    if( result && len ) {        // Get info about the requested entry.        uint32 type;        rv = GetValueType( baseKey, path, &type );        // See if that worked.        if( rv == NS_OK ) {            // Make sure the entry is bytes.            if( type == Bytes ) {                // Get bytes from registry into result field.                mErr = NR_RegGetEntry( mReg,(RKEY)baseKey,(char*)path, result, len );                // Convert status.                rv = regerr2nsresult( mErr );            } else {                // They asked for the wrong type of value.                rv = NS_ERROR_REG_BADTYPE;            }        }    } else {        rv = NS_ERROR_NULL_POINTER;    }    return rv;}