Fix ref counting in StdMarshalImpl_MarshalInterface for case where the

stub already exists.
oldstable
Mike Hearn 2004-07-29 02:43:59 +00:00 committed by Alexandre Julliard
parent 0cac6c83a7
commit e59aa5d6a4
1 changed files with 3 additions and 2 deletions

View File

@ -292,8 +292,9 @@ StdMarshalImpl_MarshalInterface(
hres = IStream_Write(pStm,&md,sizeof(md),&res);
if (hres) return hres;
if (SUCCEEDED(MARSHAL_Find_Stub(&mid,&pUnk))) {
IUnknown_Release(pUnk);
if (SUCCEEDED(MARSHAL_Find_Stub_Buffer(&mid,&stub))) {
/* Find_Stub_Buffer gives us a ref but we want to keep it, as if we'd created a new one */
TRACE("Found RpcStubBuffer %p\n", stub);
return S_OK;
}
hres = get_facbuf_for_iid(riid,&psfacbuf);