mshtml: Handle the failure case in get_nsstyle_attr.
Gerald Pfeifer
gerald at pfeifer.com
Fri Jul 15 15:49:08 CDT 2011
---
dlls/mshtml/htmlstyle.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/htmlstyle.c b/dlls/mshtml/htmlstyle.c
index cd1f6b5..3e76e61 100644
--- a/dlls/mshtml/htmlstyle.c
+++ b/dlls/mshtml/htmlstyle.c
@@ -468,6 +468,8 @@ HRESULT get_nsstyle_attr(nsIDOMCSSStyleDeclaration *nsstyle, styleid_t sid, BSTR
nsAString_GetData(&str_value, &value);
hres = nsstyle_to_bstr(value, flags, p);
+ if( FAILED(hres) )
+ return hres;
nsAString_Finish(&str_value);
TRACE("%s -> %s\n", debugstr_w(style_tbl[sid].name), debugstr_w(*p));
--
1.7.3.5
More information about the wine-patches
mailing list