Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
97be0be7
Commit
97be0be7
authored
Jul 19, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Jul 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- We should be starting with 1 reference.
- IRpcStubBuffer_Disconnect can be called more than once.
parent
b0b3080b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
oleproxy.c
dlls/ole32/oleproxy.c
+10
-4
No files found.
dlls/ole32/oleproxy.c
View file @
97be0be7
...
...
@@ -116,7 +116,10 @@ CFStub_Release(LPRPCSTUBBUFFER iface) {
ULONG
ref
;
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
!
ref
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
if
(
!
ref
)
{
IRpcStubBuffer_Disconnect
(
iface
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
}
...
...
@@ -133,9 +136,12 @@ static void WINAPI
CFStub_Disconnect
(
LPRPCSTUBBUFFER
iface
)
{
CFStub
*
This
=
(
CFStub
*
)
iface
;
IUnknown_Release
(
This
->
pUnkServer
);
This
->
pUnkServer
=
NULL
;
if
(
This
->
pUnkServer
)
{
IUnknown_Release
(
This
->
pUnkServer
);
This
->
pUnkServer
=
NULL
;
}
}
static
HRESULT
WINAPI
CFStub_Invoke
(
LPRPCSTUBBUFFER
iface
,
RPCOLEMESSAGE
*
msg
,
IRpcChannelBuffer
*
chanbuf
...
...
@@ -654,7 +660,7 @@ static HRESULT RemUnkStub_Construct(IRpcStubBuffer **ppStub)
RemUnkStub
*
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
This
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
lpVtbl
=
&
RemUnkStub_VTable
;
This
->
refs
=
0
;
This
->
refs
=
1
;
This
->
iface
=
NULL
;
*
ppStub
=
(
IRpcStubBuffer
*
)
This
;
return
S_OK
;
...
...
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