mirror of
https://github.com/reactos/wine.git
synced 2025-03-03 10:17:23 +00:00
Fix ref counting in StdMarshalImpl_MarshalInterface for case where the
stub already exists.
This commit is contained in:
parent
0cac6c83a7
commit
e59aa5d6a4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user