Jacek Caban : mshtml: Treat empty bstrHref as not specified in IHTMLDocument2:: createStyleSheet.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Dec 23 15:21:01 CST 2014


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Dec 23 17:07:18 2014 +0100

mshtml: Treat empty bstrHref as not specified in IHTMLDocument2::createStyleSheet.

---

 dlls/mshtml/htmldoc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c
index 2d89b45..e9b9dc9 100644
--- a/dlls/mshtml/htmldoc.c
+++ b/dlls/mshtml/htmldoc.c
@@ -1669,7 +1669,7 @@ static HRESULT WINAPI HTMLDocument_createStyleSheet(IHTMLDocument2 *iface, BSTR
     if(lIndex != -1)
         FIXME("Unsupported lIndex %d\n", lIndex);
 
-    if(bstrHref) {
+    if(bstrHref && *bstrHref) {
         FIXME("semi-stub for href %s\n", debugstr_w(bstrHref));
         *ppnewStyleSheet = HTMLStyleSheet_Create(NULL);
         return S_OK;




More information about the wine-cvs mailing list