Module: wine Branch: refs/heads/master Commit: db452fdf7ce8201b5970d9337ca3f45576511e3d URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=db452fdf7ce8201b5970d933...
Author: Jacek Caban jacek@codeweavers.com Date: Fri Dec 9 11:41:33 2005 +0100
mshtml: Added nsIURIContentListener to QueryInterface. Always release nsIWebBrowserSetup.
---
dlls/mshtml/nsembed.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c index 3e7a04f..ffdfbb6 100644 --- a/dlls/mshtml/nsembed.c +++ b/dlls/mshtml/nsembed.c @@ -395,6 +395,9 @@ static nsresult NSAPI nsWebBrowserChrome }else if(IsEqualGUID(&IID_nsIContextMenuListener, riid)) { TRACE("(%p)->(IID_nsIContextMenuListener, %p)\n", This, result); *result = NSCML(This); + }else if(IsEqualGUID(&IID_nsIURIContentListener, riid)) { + TRACE("(%p)->(IID_nsIURIContentListener %p)\n", This, result); + *result = NSURICL(This); }else if(IsEqualGUID(&IID_nsIEmbeddingSiteWindow, riid)) { TRACE("(%p)->(IIS_nsIEmbeddingSiteWindow %p)\n", This, result); *result = NSEMBWNDS(This); @@ -895,9 +898,9 @@ void HTMLDocument_NSContainer_Init(HTMLD &IID_nsIWebBrowserSetup, (void**)&wbsetup); if(NS_SUCCEEDED(nsres)) { nsres = nsIWebBrowserSetup_SetProperty(wbsetup, SETUP_IS_CHROME_WRAPPER, TRUE); - if(NS_FAILED(nsres)) - ERR("SetProperty failed: %08lx\n", nsres); nsIWebBrowserSetup_Release(wbsetup); + if(NS_FAILED(nsres)) + ERR("SetProperty(SETUP_IS_CHROME_WRAPPER) failed: %08lx\n", nsres); }else { ERR("Could not get nsIWebBrowserSetup interface\n"); }