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
973b8b90
Commit
973b8b90
authored
Jun 02, 2022
by
Bernhard Kölbl
Committed by
Alexandre Julliard
Jun 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.media.speech: Simplify QueryInterface functions in synthesizer.c.
Signed-off-by:
Bernhard Kölbl
<
besentv@gmail.com
>
parent
f450d538
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
synthesizer.c
dlls/windows.media.speech/synthesizer.c
+8
-12
No files found.
dlls/windows.media.speech/synthesizer.c
View file @
973b8b90
...
...
@@ -36,14 +36,15 @@ static inline struct voice_information_vector *impl_from_IVectorView_VoiceInform
static
HRESULT
WINAPI
vector_view_voice_information_QueryInterface
(
IVectorView_VoiceInformation
*
iface
,
REFIID
iid
,
void
**
out
)
{
struct
voice_information_vector
*
impl
=
impl_from_IVectorView_VoiceInformation
(
iface
);
TRACE
(
"iface %p, iid %s, out %p stub!
\n
"
,
iface
,
debugstr_guid
(
iid
),
out
);
if
(
IsEqualGUID
(
iid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
iid
,
&
IID_IInspectable
)
||
IsEqualGUID
(
iid
,
&
IID_IVectorView_VoiceInformation
))
{
IUnknown_AddRef
(
iface
);
*
out
=
iface
;
IInspectable_AddRef
((
*
out
=
&
impl
->
IVectorView_VoiceInformation_iface
));
return
S_OK
;
}
...
...
@@ -162,22 +163,19 @@ static HRESULT WINAPI synthesizer_QueryInterface( ISpeechSynthesizer *iface, REF
IsEqualGUID
(
iid
,
&
IID_IInspectable
)
||
IsEqualGUID
(
iid
,
&
IID_ISpeechSynthesizer
))
{
IUnknown_AddRef
(
iface
);
*
out
=
iface
;
IInspectable_AddRef
((
*
out
=
&
impl
->
ISpeechSynthesizer_iface
));
return
S_OK
;
}
if
(
IsEqualGUID
(
iid
,
&
IID_ISpeechSynthesizer2
))
{
IUnknown_AddRef
(
iface
);
*
out
=
&
impl
->
ISpeechSynthesizer2_iface
;
IInspectable_AddRef
((
*
out
=
&
impl
->
ISpeechSynthesizer2_iface
));
return
S_OK
;
}
if
(
IsEqualGUID
(
iid
,
&
IID_IClosable
))
{
IUnknown_AddRef
(
iface
);
*
out
=
&
impl
->
IClosable_iface
;
IInspectable_AddRef
((
*
out
=
&
impl
->
IClosable_iface
));
return
S_OK
;
}
...
...
@@ -345,15 +343,13 @@ static HRESULT WINAPI factory_QueryInterface( IActivationFactory *iface, REFIID
IsEqualGUID
(
iid
,
&
IID_IAgileObject
)
||
IsEqualGUID
(
iid
,
&
IID_IActivationFactory
))
{
IUnknown_AddRef
(
iface
);
*
out
=
iface
;
IInspectable_AddRef
((
*
out
=
&
impl
->
IActivationFactory_iface
));
return
S_OK
;
}
if
(
IsEqualGUID
(
iid
,
&
IID_IInstalledVoicesStatic
))
{
IUnknown_AddRef
(
iface
);
*
out
=
&
impl
->
IInstalledVoicesStatic_iface
;
IInspectable_AddRef
((
*
out
=
&
impl
->
IInstalledVoicesStatic_iface
));
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