bug 345383: Crash [@ nsMsgCompose::InitEditor]

patch by Florian Qu��ze <f.qu@queze.net>, r/sr=mscott
This commit is contained in:
db48x%yahoo.com 2006-08-09 22:54:38 +00:00
parent c173400c52
commit acf4ceddfb

View File

@ -1336,7 +1336,7 @@ NS_IMETHODIMP nsMsgCompose::InitEditor(nsIEditor* aEditor, nsIDOMWindow* aConten
const nsDependentCString msgCharSet(m_compFields->GetCharacterSet());
m_editor->SetDocumentCharacterSet(msgCharSet);
nsCOMPtr<nsPIDOMWindow> window = do_QueryInterface(m_window);
nsCOMPtr<nsPIDOMWindow> window = do_QueryInterface(aContentWindow);
nsIDocShell *docShell = window->GetDocShell();
NS_ENSURE_TRUE(docShell, NS_ERROR_UNEXPECTED);