Commit 5289cc85 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Use Gecko inner window in get_ns_selection.

parent 8a0cba82
......@@ -203,7 +203,10 @@ static nsISelection *get_ns_selection(HTMLDocumentNode *doc)
nsISelection *nsselection = NULL;
nsresult nsres;
nsres = nsIDOMWindow_GetSelection(doc->outer_window->nswindow, &nsselection);
if(!doc->window)
return NULL;
nsres = nsIDOMWindow_GetSelection(doc->window->dom_window, &nsselection);
if(NS_FAILED(nsres))
ERR("GetSelection failed %08lx\n", nsres);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment