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