NS_IMETHODIMP nsRegistry::GetKey(nsRegistryKey baseKey, const PRUnichar *keyname, nsRegistryKey *_retval) { if ( !keyname || !_retval ) return NS_ERROR_NULL_POINTER;  return GetSubtree( baseKey, NS_ConvertUCS2toUTF8(keyname).get(), _retval );
NS_IMETHODIMP nsRegistryNode::GetKey( nsRegistryKey *r_key ) { nsresult rv = NS_OK; if (r_key == NULL) return NS_ERROR_NULL_POINTER; *r_key = mChildKey; return rv;
NS_IMETHODIMP nsRegistry::GetKey(nsRegistryKey baseKey, const PRUnichar *keyname, nsRegistryKey *_retval){    if ( !keyname || !_retval )         return NS_ERROR_NULL_POINTER;    return GetSubtree( baseKey, NS_ConvertUCS2toUTF8(keyname).get(), _retval );}