Module: wine Branch: master Commit: d62f0f5e6305ccd43407c1805e991c351687a80b URL: http://source.winehq.org/git/wine.git/?a=commit;h=d62f0f5e6305ccd43407c1805e...
Author: Qian Hong qhong@codeweavers.com Date: Tue Sep 23 16:56:15 2014 +0800
mshtml: Don't pass NULL string pointer to jscript engine.
---
dlls/mshtml/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mshtml/script.c b/dlls/mshtml/script.c index e5f4ab1..da6839f 100644 --- a/dlls/mshtml/script.c +++ b/dlls/mshtml/script.c @@ -739,7 +739,7 @@ static void parse_extern_script(ScriptHost *script_host, LPCWSTR src)
hres = bind_mon_to_wstr(script_host->window, mon, &text); IMoniker_Release(mon); - if(FAILED(hres)) + if(FAILED(hres) || !text) return;
parse_text(script_host, text);