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
16394305
Commit
16394305
authored
Jun 04, 2013
by
Christian Costa
Committed by
Alexandre Julliard
Jun 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Display iface in traces and new ref in AddRef and Release for IEnumPins.
parent
550415ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
enumpins.c
dlls/strmbase/enumpins.c
+14
-14
No files found.
dlls/strmbase/enumpins.c
View file @
16394305
...
@@ -76,7 +76,7 @@ HRESULT WINAPI EnumPins_Construct(BaseFilter *base, BaseFilter_GetPin receive_p
...
@@ -76,7 +76,7 @@ HRESULT WINAPI EnumPins_Construct(BaseFilter *base, BaseFilter_GetPin receive_p
static
HRESULT
WINAPI
IEnumPinsImpl_QueryInterface
(
IEnumPins
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
static
HRESULT
WINAPI
IEnumPinsImpl_QueryInterface
(
IEnumPins
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
{
{
TRACE
(
"(%
s, %p)
\n
"
,
debugstr_guid
(
riid
),
ppv
);
TRACE
(
"(%
p)->(%s, %p)
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppv
);
*
ppv
=
NULL
;
*
ppv
=
NULL
;
...
@@ -99,28 +99,27 @@ static HRESULT WINAPI IEnumPinsImpl_QueryInterface(IEnumPins * iface, REFIID rii
...
@@ -99,28 +99,27 @@ static HRESULT WINAPI IEnumPinsImpl_QueryInterface(IEnumPins * iface, REFIID rii
static
ULONG
WINAPI
IEnumPinsImpl_AddRef
(
IEnumPins
*
iface
)
static
ULONG
WINAPI
IEnumPinsImpl_AddRef
(
IEnumPins
*
iface
)
{
{
IEnumPinsImpl
*
This
=
impl_from_IEnumPins
(
iface
);
IEnumPinsImpl
*
This
=
impl_from_IEnumPins
(
iface
);
ULONG
ref
Count
=
InterlockedIncrement
(
&
This
->
refCount
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
refCount
);
TRACE
(
"(%p)->()
AddRef from %d
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)->()
: new ref = %u
\n
"
,
iface
,
ref
);
return
ref
Count
;
return
ref
;
}
}
static
ULONG
WINAPI
IEnumPinsImpl_Release
(
IEnumPins
*
iface
)
static
ULONG
WINAPI
IEnumPinsImpl_Release
(
IEnumPins
*
iface
)
{
{
IEnumPinsImpl
*
This
=
impl_from_IEnumPins
(
iface
);
IEnumPinsImpl
*
This
=
impl_from_IEnumPins
(
iface
);
ULONG
ref
Count
=
InterlockedDecrement
(
&
This
->
refCount
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
refCount
);
TRACE
(
"(%p)->()
Release from %d
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)->()
: new ref = %u
\n
"
,
iface
,
ref
);
if
(
!
ref
Count
)
if
(
!
ref
)
{
{
IBaseFilter_Release
(
&
This
->
base
->
IBaseFilter_iface
);
IBaseFilter_Release
(
&
This
->
base
->
IBaseFilter_iface
);
CoTaskMemFree
(
This
);
CoTaskMemFree
(
This
);
return
0
;
}
}
else
return
refCount
;
return
ref
;
}
}
static
HRESULT
WINAPI
IEnumPinsImpl_Next
(
IEnumPins
*
iface
,
ULONG
cPins
,
IPin
**
ppPins
,
ULONG
*
pcFetched
)
static
HRESULT
WINAPI
IEnumPinsImpl_Next
(
IEnumPins
*
iface
,
ULONG
cPins
,
IPin
**
ppPins
,
ULONG
*
pcFetched
)
...
@@ -129,7 +128,7 @@ static HRESULT WINAPI IEnumPinsImpl_Next(IEnumPins * iface, ULONG cPins, IPin **
...
@@ -129,7 +128,7 @@ static HRESULT WINAPI IEnumPinsImpl_Next(IEnumPins * iface, ULONG cPins, IPin **
HRESULT
hr
=
S_OK
;
HRESULT
hr
=
S_OK
;
ULONG
i
=
0
;
ULONG
i
=
0
;
TRACE
(
"(%
u, %p, %p)
\n
"
,
cPins
,
ppPins
,
pcFetched
);
TRACE
(
"(%
p)->(%u, %p, %p)
\n
"
,
iface
,
cPins
,
ppPins
,
pcFetched
);
if
(
!
ppPins
)
if
(
!
ppPins
)
return
E_POINTER
;
return
E_POINTER
;
...
@@ -168,7 +167,7 @@ static HRESULT WINAPI IEnumPinsImpl_Skip(IEnumPins * iface, ULONG cPins)
...
@@ -168,7 +167,7 @@ static HRESULT WINAPI IEnumPinsImpl_Skip(IEnumPins * iface, ULONG cPins)
{
{
IEnumPinsImpl
*
This
=
impl_from_IEnumPins
(
iface
);
IEnumPinsImpl
*
This
=
impl_from_IEnumPins
(
iface
);
TRACE
(
"(%
u)
\n
"
,
cPins
);
TRACE
(
"(%
p)->(%u)
\n
"
,
iface
,
cPins
);
if
(
This
->
Version
!=
This
->
receive_version
(
This
->
base
))
if
(
This
->
Version
!=
This
->
receive_version
(
This
->
base
))
return
VFW_E_ENUM_OUT_OF_SYNC
;
return
VFW_E_ENUM_OUT_OF_SYNC
;
...
@@ -184,7 +183,8 @@ static HRESULT WINAPI IEnumPinsImpl_Reset(IEnumPins * iface)
...
@@ -184,7 +183,8 @@ static HRESULT WINAPI IEnumPinsImpl_Reset(IEnumPins * iface)
{
{
IEnumPinsImpl
*
This
=
impl_from_IEnumPins
(
iface
);
IEnumPinsImpl
*
This
=
impl_from_IEnumPins
(
iface
);
TRACE
(
"IEnumPinsImpl::Reset()
\n
"
);
TRACE
(
"(%p)->()
\n
"
,
iface
);
This
->
Version
=
This
->
receive_version
(
This
->
base
);
This
->
Version
=
This
->
receive_version
(
This
->
base
);
This
->
uIndex
=
0
;
This
->
uIndex
=
0
;
...
@@ -196,7 +196,7 @@ static HRESULT WINAPI IEnumPinsImpl_Clone(IEnumPins * iface, IEnumPins ** ppEnum
...
@@ -196,7 +196,7 @@ static HRESULT WINAPI IEnumPinsImpl_Clone(IEnumPins * iface, IEnumPins ** ppEnum
HRESULT
hr
;
HRESULT
hr
;
IEnumPinsImpl
*
This
=
impl_from_IEnumPins
(
iface
);
IEnumPinsImpl
*
This
=
impl_from_IEnumPins
(
iface
);
TRACE
(
"(%p)
\n
"
,
ppEnum
);
TRACE
(
"(%p)
->(%p)
\n
"
,
iface
,
ppEnum
);
hr
=
EnumPins_Construct
(
This
->
base
,
This
->
receive_pin
,
This
->
receive_pincount
,
This
->
receive_version
,
ppEnum
);
hr
=
EnumPins_Construct
(
This
->
base
,
This
->
receive_pin
,
This
->
receive_pincount
,
This
->
receive_version
,
ppEnum
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
...
...
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