Resend: mshtml.dll:Add implementation HTMLDocument_get_referrer

Jacek Caban jacek at codeweavers.com
Fri Oct 10 05:16:33 CDT 2008


Ivan Sinitsin wrote:
> Add implementation of HTMLDocument_get_referrer function, in unit `htmldoc.c` 
> (mshtml.dll).
>
> Changelog:
>         Add implementation of HTMLDocument_get_referrer function.
>
>   
>
> +    if(!This->nscontainer)
> +        return E_FAIL;
> +
> +    nsres = nsIWebNavigation_GetDocument(This->nscontainer->navigation, &nsdoc);
> +    if(NS_FAILED(nsres) || (!nsdoc)) {
> +        ERR("GetDocument failed: %08x\n", nsres);
> +        return E_FAIL;
> +    }
> +
> +    nsIDOMDocument_QueryInterface(nsdoc, &IID_nsIDOMHTMLDocument, (void**)&nshtmldoc);
> +    nsIDOMDocument_Release(nsdoc);
> +


Please use nsdoc stored in HTMLDocument. It currently doesn't make much 
difference, but with changes from my tree it will.


Jacek



More information about the wine-devel mailing list