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
dffd3e50
Commit
dffd3e50
authored
Aug 30, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Tidy up CStdStubBuffer_AddRef,Release.
parent
7a120c99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
cstub.c
dlls/rpcrt4/cstub.c
+7
-4
No files found.
dlls/rpcrt4/cstub.c
View file @
dffd3e50
...
...
@@ -105,23 +105,26 @@ ULONG WINAPI CStdStubBuffer_AddRef(LPRPCSTUBBUFFER iface)
{
CStdStubBuffer
*
This
=
(
CStdStubBuffer
*
)
iface
;
TRACE
(
"(%p)->AddRef()
\n
"
,
This
);
return
++
(
This
->
RefCount
);
return
InterlockedIncrement
(
&
This
->
RefCount
);
}
ULONG
WINAPI
NdrCStdStubBuffer_Release
(
LPRPCSTUBBUFFER
iface
,
LPPSFACTORYBUFFER
pPSF
)
{
CStdStubBuffer
*
This
=
(
CStdStubBuffer
*
)
iface
;
ULONG
refs
;
TRACE
(
"(%p)->Release()
\n
"
,
This
);
if
(
!--
(
This
->
RefCount
))
{
refs
=
InterlockedDecrement
(
&
This
->
RefCount
);
if
(
!
refs
)
{
IRpcStubBuffer_Disconnect
(
iface
);
if
(
This
->
pPSFactory
)
IPSFactoryBuffer_Release
(
This
->
pPSFactory
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
0
;
}
return
This
->
RefCount
;
return
refs
;
}
ULONG
WINAPI
NdrCStdStubBuffer2_Release
(
LPRPCSTUBBUFFER
iface
,
...
...
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