Robert Shearman : oleaut32: Fix flag comparison in Picture Invoke.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 14 07:27:48 CST 2006


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

Author: Robert Shearman <rob at codeweavers.com>
Date:   Tue Feb 14 11:32:53 2006 +0100

oleaut32: Fix flag comparison in Picture Invoke.
One or more invoke flags can be passed into IDispatch::Invoke, but we
only care if INVOKEFLAG_PROPERTYGET is specified, and don't about any
others.

---

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

diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
index e24fc2a..07b0bb1 100644
--- a/dlls/oleaut32/olepicture.c
+++ b/dlls/oleaut32/olepicture.c
@@ -2033,7 +2033,7 @@ static HRESULT WINAPI OLEPictureImpl_Inv
   if (dispIdMember == DISPID_PICT_TYPE)
   {
     TRACE("DISPID_PICT_TYPE\n");
-    if (wFlags & ~INVOKE_PROPERTYGET)
+    if (!(wFlags & INVOKE_PROPERTYGET))
         return DISP_E_PARAMNOTFOUND;
     if (pDispParams->cArgs != 0)
         return DISP_E_BADPARAMCOUNT;




More information about the wine-cvs mailing list