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
19cc1dbe
Commit
19cc1dbe
authored
May 19, 2023
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmvcore: Remove superfluous casts to self.
parent
51f8c75c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
async_reader.c
dlls/wmvcore/async_reader.c
+1
-1
wmvcore.c
dlls/wmvcore/tests/wmvcore.c
+9
-9
No files found.
dlls/wmvcore/async_reader.c
View file @
19cc1dbe
...
...
@@ -1932,7 +1932,7 @@ static HRESULT WINAPI async_reader_create(IWMReader **reader)
list_init
(
&
object
->
async_ops
);
TRACE
(
"Created async reader %p.
\n
"
,
object
);
*
reader
=
(
IWMReader
*
)
&
object
->
IWMReader_iface
;
*
reader
=
&
object
->
IWMReader_iface
;
return
S_OK
;
failed:
...
...
dlls/wmvcore/tests/wmvcore.c
View file @
19cc1dbe
...
...
@@ -1920,7 +1920,7 @@ static HRESULT WINAPI callback_OnStatus(IWMReaderCallback *iface, WMT_STATUS sta
callback
->
callback_tid
=
GetCurrentThreadId
();
ok
(
type
==
WMT_TYPE_DWORD
,
"Got type %#x.
\n
"
,
type
);
ok
(
!*
(
DWORD
*
)
value
,
"Got value %#lx.
\n
"
,
*
(
DWORD
*
)
value
);
ok
(
context
==
(
void
*
)
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
ok
(
context
==
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
ret
=
WaitForSingleObject
(
callback
->
expect_started
,
100
);
ok
(
!
ret
,
"Wait timed out.
\n
"
);
callback
->
end_of_streaming_count
=
callback
->
eof_count
=
callback
->
sample_count
=
0
;
...
...
@@ -1933,7 +1933,7 @@ static HRESULT WINAPI callback_OnStatus(IWMReaderCallback *iface, WMT_STATUS sta
ok
(
callback
->
callback_tid
==
GetCurrentThreadId
(),
"got wrong thread
\n
"
);
ok
(
type
==
WMT_TYPE_DWORD
,
"Got type %#x.
\n
"
,
type
);
ok
(
!*
(
DWORD
*
)
value
,
"Got value %#lx.
\n
"
,
*
(
DWORD
*
)
value
);
ok
(
context
==
(
void
*
)
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
ok
(
context
==
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
ret
=
WaitForSingleObject
(
callback
->
expect_stopped
,
100
);
ok
(
!
ret
,
"Wait timed out.
\n
"
);
SetEvent
(
callback
->
got_stopped
);
...
...
@@ -1942,7 +1942,7 @@ static HRESULT WINAPI callback_OnStatus(IWMReaderCallback *iface, WMT_STATUS sta
case
WMT_CLOSED
:
ok
(
type
==
WMT_TYPE_DWORD
,
"Got type %#x.
\n
"
,
type
);
ok
(
!*
(
DWORD
*
)
value
,
"Got value %#lx.
\n
"
,
*
(
DWORD
*
)
value
);
ok
(
context
==
(
void
*
)
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
ok
(
context
==
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
++
callback
->
closed_count
;
break
;
...
...
@@ -1950,7 +1950,7 @@ static HRESULT WINAPI callback_OnStatus(IWMReaderCallback *iface, WMT_STATUS sta
ok
(
callback
->
callback_tid
==
GetCurrentThreadId
(),
"got wrong thread
\n
"
);
ok
(
type
==
WMT_TYPE_DWORD
,
"Got type %#x.
\n
"
,
type
);
ok
(
!*
(
DWORD
*
)
value
,
"Got value %#lx.
\n
"
,
*
(
DWORD
*
)
value
);
ok
(
context
==
(
void
*
)
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
ok
(
context
==
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
++
callback
->
end_of_streaming_count
;
break
;
...
...
@@ -1958,7 +1958,7 @@ static HRESULT WINAPI callback_OnStatus(IWMReaderCallback *iface, WMT_STATUS sta
ok
(
callback
->
callback_tid
==
GetCurrentThreadId
(),
"got wrong thread
\n
"
);
ok
(
type
==
WMT_TYPE_DWORD
,
"Got type %#x.
\n
"
,
type
);
ok
(
!*
(
DWORD
*
)
value
,
"Got value %#lx.
\n
"
,
*
(
DWORD
*
)
value
);
ok
(
context
==
(
void
*
)
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
ok
(
context
==
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
if
(
callback
->
all_streams_off
)
ok
(
callback
->
sample_count
==
0
,
"Got %u samples.
\n
"
,
callback
->
sample_count
);
else
...
...
@@ -1976,7 +1976,7 @@ static HRESULT WINAPI callback_OnStatus(IWMReaderCallback *iface, WMT_STATUS sta
ok
(
callback
->
callback_tid
==
GetCurrentThreadId
(),
"got wrong thread
\n
"
);
ok
(
type
==
WMT_TYPE_QWORD
,
"Got type %#x.
\n
"
,
type
);
ok
(
*
(
QWORD
*
)
value
==
3000
,
"Got value %#lx.
\n
"
,
*
(
DWORD
*
)
value
);
ok
(
context
==
(
void
*
)
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
ok
(
context
==
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
if
(
callback
->
all_streams_off
)
ok
(
callback
->
sample_count
==
0
,
"Got %u samples.
\n
"
,
callback
->
sample_count
);
else
...
...
@@ -2082,7 +2082,7 @@ static HRESULT WINAPI callback_OnSample(IWMReaderCallback *iface, DWORD output,
if
(
stream
)
ok
(
stream
->
input_tid
!=
GetCurrentThreadId
(),
"got wrong thread
\n
"
);
ok
(
context
==
(
void
*
)
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
ok
(
context
==
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
check_async_sample
(
callback
,
sample
);
...
...
@@ -2166,7 +2166,7 @@ static HRESULT WINAPI callback_advanced_OnStreamSample(IWMReaderCallbackAdvanced
if
(
stream
)
ok
(
stream
->
input_tid
!=
GetCurrentThreadId
(),
"got wrong thread
\n
"
);
ok
(
context
==
(
void
*
)
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
ok
(
context
==
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
check_async_sample
(
callback
,
sample
);
...
...
@@ -2191,7 +2191,7 @@ static HRESULT WINAPI callback_advanced_OnTime(IWMReaderCallbackAdvanced *iface,
todo_wine_if
(
time
%
10000
)
ok
(
time
==
callback
->
expect_time
,
"Got time %I64u.
\n
"
,
time
);
ok
(
context
==
(
void
*
)
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
ok
(
context
==
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
ret
=
WaitForSingleObject
(
callback
->
expect_ontime
,
100
);
ok
(
!
ret
,
"Wait timed out.
\n
"
);
SetEvent
(
callback
->
got_ontime
);
...
...
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