Robert Shearman : oleaut32: RegisterTypeLib should register any interface that derives

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jun 29 08:32:01 CDT 2006


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

Author: Robert Shearman <rob at codeweavers.com>
Date:   Wed Jun 28 21:24:49 2006 +0100

oleaut32: RegisterTypeLib should register any interface that derives
from IDispatch rather than just dual interfaces.

This is hinted at, although not explicitly stated on MSDN, but was 
verified by tests with native oleaut32.

---

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

diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index d55120d..11302be 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -597,7 +597,7 @@ #undef XX
 			MESSAGE("\n");
 		    }
 
-		    if (tattr->wTypeFlags & (TYPEFLAG_FOLEAUTOMATION|TYPEFLAG_FDUAL))
+		    if (tattr->wTypeFlags & (TYPEFLAG_FOLEAUTOMATION|TYPEFLAG_FDISPATCHABLE))
 		    {
 			/* register interface<->typelib coupling */
 			get_interface_key( &tattr->guid, keyName );




More information about the wine-cvs mailing list