Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
6545d994
Commit
6545d994
authored
Jul 30, 2004
by
Mike Hearn
Committed by
Alexandre Julliard
Jul 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disconnect the server object from the stub on stub destruction.
parent
6cd1a7d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
tmarshal.c
dlls/oleaut32/tmarshal.c
+12
-0
No files found.
dlls/oleaut32/tmarshal.c
View file @
6545d994
...
...
@@ -1458,6 +1458,8 @@ TMStubImpl_QueryInterface(LPRPCSTUBBUFFER iface, REFIID riid, LPVOID *ppv) {
static
ULONG
WINAPI
TMStubImpl_AddRef
(
LPRPCSTUBBUFFER
iface
)
{
ICOM_THIS
(
TMStubImpl
,
iface
);
TRACE
(
"(%p) before %lu
\n
"
,
This
,
This
->
ref
);
This
->
ref
++
;
return
This
->
ref
;
...
...
@@ -1467,9 +1469,14 @@ static ULONG WINAPI
TMStubImpl_Release
(
LPRPCSTUBBUFFER
iface
)
{
ICOM_THIS
(
TMStubImpl
,
iface
);
TRACE
(
"(%p) after %lu
\n
"
,
This
,
This
->
ref
-
1
);
This
->
ref
--
;
if
(
This
->
ref
)
return
This
->
ref
;
IRpcStubBuffer_Disconnect
(
iface
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
0
;
}
...
...
@@ -1478,6 +1485,8 @@ static HRESULT WINAPI
TMStubImpl_Connect
(
LPRPCSTUBBUFFER
iface
,
LPUNKNOWN
pUnkServer
)
{
ICOM_THIS
(
TMStubImpl
,
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pUnkServer
);
IUnknown_AddRef
(
pUnkServer
);
This
->
pUnk
=
pUnkServer
;
return
S_OK
;
...
...
@@ -1487,6 +1496,8 @@ static void WINAPI
TMStubImpl_Disconnect
(
LPRPCSTUBBUFFER
iface
)
{
ICOM_THIS
(
TMStubImpl
,
iface
);
TRACE
(
"(%p)->()
\n
"
,
This
);
IUnknown_Release
(
This
->
pUnk
);
This
->
pUnk
=
NULL
;
return
;
...
...
@@ -1736,6 +1747,7 @@ PSFacBuf_CreateStub(
memcpy
(
&
(
stub
->
iid
),
riid
,
sizeof
(
*
riid
));
hres
=
IRpcStubBuffer_Connect
((
LPRPCSTUBBUFFER
)
stub
,
pUnkServer
);
*
ppStub
=
(
LPRPCSTUBBUFFER
)
stub
;
TRACE
(
"IRpcStubBuffer: %p
\n
"
,
stub
);
if
(
hres
)
FIXME
(
"Connect to pUnkServer failed?
\n
"
);
return
hres
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment