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
0e29ac05
Commit
0e29ac05
authored
Sep 26, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Fix implementation of IEnumPins_Skip().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2a1cc433
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
enumpins.c
dlls/strmbase/enumpins.c
+6
-6
No files found.
dlls/strmbase/enumpins.c
View file @
0e29ac05
...
@@ -162,19 +162,19 @@ static HRESULT WINAPI IEnumPinsImpl_Next(IEnumPins * iface, ULONG cPins, IPin **
...
@@ -162,19 +162,19 @@ static HRESULT WINAPI IEnumPinsImpl_Next(IEnumPins * iface, ULONG cPins, IPin **
return
S_OK
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
IEnumPinsImpl_Skip
(
IEnumPins
*
iface
,
ULONG
cPins
)
static
HRESULT
WINAPI
IEnumPinsImpl_Skip
(
IEnumPins
*
iface
,
ULONG
count
)
{
{
IEnumPinsImpl
*
Thi
s
=
impl_from_IEnumPins
(
iface
);
IEnumPinsImpl
*
enum_pin
s
=
impl_from_IEnumPins
(
iface
);
TRACE
(
"
(%p)->(%u)
\n
"
,
iface
,
cPins
);
TRACE
(
"
enum_pins %p, count %u.
\n
"
,
enum_pins
,
count
);
if
(
This
->
Version
!=
This
->
receive_version
(
Thi
s
->
base
))
if
(
enum_pins
->
Version
!=
enum_pins
->
receive_version
(
enum_pin
s
->
base
))
return
VFW_E_ENUM_OUT_OF_SYNC
;
return
VFW_E_ENUM_OUT_OF_SYNC
;
if
(
This
->
receive_pincount
(
This
->
base
)
>=
This
->
uIndex
+
cPins
)
if
(
enum_pins
->
uIndex
+
count
>
enum_pins
->
receive_pincount
(
enum_pins
->
base
)
)
return
S_FALSE
;
return
S_FALSE
;
This
->
uIndex
+=
cPins
;
enum_pins
->
uIndex
+=
count
;
return
S_OK
;
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