Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9941a716
Commit
9941a716
authored
Jul 13, 2023
by
Shaun Ren
Committed by
Alexandre Julliard
Jul 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sapi: Invoke AddRef in ISpVoice::SetVoice.
parent
5fccc408
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tts.c
dlls/sapi/tts.c
+2
-1
No files found.
dlls/sapi/tts.c
View file @
9941a716
...
...
@@ -641,7 +641,6 @@ static HRESULT WINAPI spvoice_SetVoice(ISpVoice *iface, ISpObjectToken *token)
ISpTTSEngine
*
engine
;
HRESULT
hr
;
TRACE
(
"(%p, %p).
\n
"
,
iface
,
token
);
if
(
!
token
)
...
...
@@ -649,6 +648,8 @@ static HRESULT WINAPI spvoice_SetVoice(ISpVoice *iface, ISpObjectToken *token)
if
(
FAILED
(
hr
=
create_default_token
(
SPCAT_VOICES
,
&
token
)))
return
hr
;
}
else
ISpObjectToken_AddRef
(
token
);
hr
=
ISpObjectToken_CreateInstance
(
token
,
NULL
,
CLSCTX_ALL
,
&
IID_ISpTTSEngine
,
(
void
**
)
&
engine
);
ISpObjectToken_Release
(
token
);
...
...
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