mshtml: Use nsAString_InitDepend in SetDesignMode call.
This commit is contained in:
parent
cf6288e2ab
commit
6a7db8967f
|
@ -2949,7 +2949,7 @@ HRESULT update_window_doc(HTMLInnerWindow *window)
|
|||
|
||||
static const PRUnichar onW[] = {'o','n',0};
|
||||
|
||||
nsAString_Init(&mode_str, onW);
|
||||
nsAString_InitDepend(&mode_str, onW);
|
||||
nsres = nsIDOMHTMLDocument_SetDesignMode(window->doc->nsdoc, &mode_str);
|
||||
nsAString_Finish(&mode_str);
|
||||
if(NS_FAILED(nsres))
|
||||
|
|
Loading…
Reference in New Issue