mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
bug 345383: Crash [@ nsMsgCompose::InitEditor]
patch by Florian Qu��ze <f.qu@queze.net>, r/sr=mscott
This commit is contained in:
parent
c173400c52
commit
acf4ceddfb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user