Qian Hong : mshtml: Don't pass NULL string pointer to jscript engine.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Sep 23 14:03:01 CDT 2014


Module: wine
Branch: master
Commit: d62f0f5e6305ccd43407c1805e991c351687a80b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d62f0f5e6305ccd43407c1805e991c351687a80b

Author: Qian Hong <qhong at 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);




More information about the wine-cvs mailing list