Gerald Pfeifer : mshtml: Handle the failure case in get_nsstyle_attr.

Alexandre Julliard julliard at winehq.org
Mon Jul 25 11:43:14 CDT 2011


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

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Sun Jul 24 01:45:14 2011 +0200

mshtml: Handle the failure case in get_nsstyle_attr.

---

 dlls/mshtml/htmlstyle.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/htmlstyle.c b/dlls/mshtml/htmlstyle.c
index ae2cf93..027a2fb 100644
--- a/dlls/mshtml/htmlstyle.c
+++ b/dlls/mshtml/htmlstyle.c
@@ -480,7 +480,7 @@ HRESULT get_nsstyle_attr(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, BSTR
     nsAString_Finish(&str_value);
 
     TRACE("%s -> %s\n", debugstr_w(style_tbl[sid].name), debugstr_w(*p));
-    return S_OK;
+    return hres;
 }
 
 HRESULT get_nsstyle_attr_var(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, VARIANT *p, DWORD flags)




More information about the wine-cvs mailing list