On Fri, 03 Dec 2004 23:01:36 -0500, Jacek Caban wrote:
+ hres = IBindCtx_RegisterObjectParam(bctx, (LPOLESTR)BSCBHolder, (IUnknown*)callback); + + *pbind = bctx; + + return S_OK; }
You don't do anything with hres here, is that intentional? Can RegisterObjectParam fail? thanks -mike
Mike Hearn wrote:
On Fri, 03 Dec 2004 23:01:36 -0500, Jacek Caban wrote:
+ hres = IBindCtx_RegisterObjectParam(bctx, (LPOLESTR)BSCBHolder, (IUnknown*)callback); + + *pbind = bctx; + + return S_OK; }
You don't do anything with hres here, is that intentional? Can RegisterObjectParam fail?
thanks -mike
It's my tiny bug. RegsterObjectParam can fail only with E_OUTOFMEMORY here, so checking it's return is really not important, but to be correct at all, hres should be just returned. Thanks, Jacek
participants (2)
-
Jacek Caban -
Mike Hearn