*result = new nsRegistryValue( mReg, mKey, mEnum );
*result = new nsRegistryNode( mReg, mKey, mEnum );
nsRegValueEnumerator::CurrentItem( nsISupports **result ) {    nsresult rv = NS_OK;    // Make sure there is a place to put the result.    if( result ) {        *result = new nsRegistryValue( mReg, mKey, mEnum );        if( *result ) {            (*result)->AddRef();        } else {            rv = NS_ERROR_OUT_OF_MEMORY;        }    } else {        rv = NS_ERROR_NULL_POINTER;    }    return rv;}