From 6e97e7e24cdb69d268ef6253a823cd2ba08046d3 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 4 Apr 2012 10:31:20 +0200 Subject: [PATCH] mshtml: Use helper for IHTMLStyle::get_left implementation. --- dlls/mshtml/htmlstyle.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dlls/mshtml/htmlstyle.c b/dlls/mshtml/htmlstyle.c index 868854940a6..7cbf895a908 100644 --- a/dlls/mshtml/htmlstyle.c +++ b/dlls/mshtml/htmlstyle.c @@ -2171,18 +2171,10 @@ static HRESULT WINAPI HTMLStyle_put_left(IHTMLStyle *iface, VARIANT v) static HRESULT WINAPI HTMLStyle_get_left(IHTMLStyle *iface, VARIANT *p) { HTMLStyle *This = impl_from_IHTMLStyle(iface); - BSTR ret; - HRESULT hres; TRACE("(%p)->(%p)\n", This, p); - hres = get_style_attr(This, STYLEID_LEFT, &ret); - if(FAILED(hres)) - return hres; - - V_VT(p) = VT_BSTR; - V_BSTR(p) = ret; - return S_OK; + return get_nsstyle_attr_var(This->nsstyle, STYLEID_LEFT, p, 0); } static HRESULT WINAPI HTMLStyle_get_position(IHTMLStyle *iface, BSTR *p)