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
4a0db156
Commit
4a0db156
authored
Jul 28, 2016
by
Anton Baskanov
Committed by
Alexandre Julliard
Aug 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Fix AMAudioData::QueryInterface.
Signed-off-by:
Anton Baskanov
<
baskanov@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
16d300ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletion
+35
-1
audiodata.c
dlls/amstream/audiodata.c
+0
-1
amstream.c
dlls/amstream/tests/amstream.c
+35
-0
No files found.
dlls/amstream/audiodata.c
View file @
4a0db156
...
...
@@ -43,7 +43,6 @@ static HRESULT WINAPI IAudioDataImpl_QueryInterface(IAudioData *iface, REFIID ri
TRACE
(
"(%p)->(%s,%p)
\n
"
,
iface
,
debugstr_guid
(
riid
),
ret_iface
);
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IMemoryData
)
||
IsEqualGUID
(
riid
,
&
IID_IAudioData
))
{
IAudioData_AddRef
(
iface
);
...
...
dlls/amstream/tests/amstream.c
View file @
4a0db156
...
...
@@ -593,6 +593,39 @@ error:
IAMMultiMediaStream_Release
(
pams
);
}
static
IUnknown
*
create_audio_data
(
void
)
{
IUnknown
*
audio_data
=
NULL
;
HRESULT
result
=
CoCreateInstance
(
&
CLSID_AMAudioData
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
void
**
)
&
audio_data
);
ok
(
S_OK
==
result
,
"got 0x%08x
\n
"
,
result
);
return
audio_data
;
}
static
void
test_audiodata_query_interface
(
void
)
{
IUnknown
*
unknown
=
create_audio_data
();
IMemoryData
*
memory_data
=
NULL
;
IAudioData
*
audio_data
=
NULL
;
HRESULT
result
;
result
=
IUnknown_QueryInterface
(
unknown
,
&
IID_IMemoryData
,
(
void
**
)
&
memory_data
);
ok
(
E_NOINTERFACE
==
result
,
"got 0x%08x
\n
"
,
result
);
result
=
IUnknown_QueryInterface
(
unknown
,
&
IID_IAudioData
,
(
void
**
)
&
audio_data
);
ok
(
S_OK
==
result
,
"got 0x%08x
\n
"
,
result
);
if
(
S_OK
==
result
)
{
result
=
IAudioData_QueryInterface
(
audio_data
,
&
IID_IMemoryData
,
(
void
**
)
&
memory_data
);
ok
(
E_NOINTERFACE
==
result
,
"got 0x%08x
\n
"
,
result
);
IAudioData_Release
(
audio_data
);
}
IUnknown_Release
(
unknown
);
}
START_TEST
(
amstream
)
{
HANDLE
file
;
...
...
@@ -611,5 +644,7 @@ START_TEST(amstream)
test_renderfile
();
}
test_audiodata_query_interface
();
CoUninitialize
();
}
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