Robert Shearman : oleaut32: Handle the Weight property in IFontDisp::Invoke .

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jul 28 07:15:24 CDT 2006


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

Author: Robert Shearman <rob at codeweavers.com>
Date:   Fri Jul 28 01:20:17 2006 +0100

oleaut32: Handle the Weight property in IFontDisp::Invoke.

---

 dlls/oleaut32/olefont.c |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/dlls/oleaut32/olefont.c b/dlls/oleaut32/olefont.c
index 87848c6..07bfa34 100644
--- a/dlls/oleaut32/olefont.c
+++ b/dlls/oleaut32/olefont.c
@@ -1562,6 +1562,25 @@ static HRESULT WINAPI OLEFontImpl_Invoke
       return hr;
     }
     break;
+  case DISPID_FONT_WEIGHT:
+    if (wFlags & DISPATCH_PROPERTYGET) {
+      V_VT(pVarResult) = VT_I2;
+      return OLEFontImpl_get_Weight((IFont *)this, &V_I2(pVarResult));
+    } else {
+      VARIANTARG vararg;
+      HRESULT hr;
+
+      VariantInit(&vararg);
+      hr = VariantChangeTypeEx(&vararg, &pDispParams->rgvarg[0], lcid, 0, VT_I2);
+      if (FAILED(hr))
+        return hr;
+
+      hr = IFont_put_Weight((IFont *)this, V_I2(&vararg));
+
+      VariantClear(&vararg);
+      return hr;
+    }
+    break;
   case DISPID_FONT_CHARSET:
     if (wFlags & DISPATCH_PROPERTYGET) {
       V_VT(pVarResult) = VT_I2;




More information about the wine-cvs mailing list