[PATCH] mshtml: initialize nswindow in create_doc_from_nsdoc
Marcus Meissner
marcus at jet.franken.de
Thu Oct 16 02:33:07 CDT 2008
Hi,
Without gecko installed we run during make check into
a codepath where nswindow is uninitialized and contains
random data.
ciao, Marcus
---
dlls/mshtml/htmldoc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c
index fcabaa1..7fc6f30 100644
--- a/dlls/mshtml/htmldoc.c
+++ b/dlls/mshtml/htmldoc.c
@@ -1664,7 +1664,7 @@ HRESULT create_doc_from_nsdoc(nsIDOMHTMLDocument *nsdoc, HTMLDocument **ret)
HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
{
HTMLDocument *doc;
- nsIDOMWindow *nswindow;
+ nsIDOMWindow *nswindow = NULL;
HRESULT hres;
TRACE("(%p %s %p)\n", pUnkOuter, debugstr_guid(riid), ppvObject);
--
1.5.6
More information about the wine-patches
mailing list