We may search multiple modules/types, and we shouldn't necessarily return the failure code of the last one we searched. If we ever get a type mismatch error, we should return that error, but the last result we get will most likely be "not found", or S_OK with a DESCKIND_NONE.
(I'm not sure whether we should return the type mismatch error immediately when we get it. If one type has a property get, another module we search later has a property put, and we ask for property put, I don't know if the Bind should find it or return a type mismatch. This implementation will find it.) On Fri, Mar 12, 2010 at 3:09 PM, Nikolay Sivov <[email protected]> wrote: > On 3/12/2010 23:56, Vincent Povirk wrote: > >> ITypeLibImpl *This = impl_from_ITypeComp(iface); >> ITypeInfoImpl *pTypeInfo; >> + int typemismatch=0; >> > > Do you really need this one? Looks like it's enough to move hr at top level > and use it. > > > > >
