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
261d7c3d
Commit
261d7c3d
authored
Feb 06, 2024
by
Shaun Ren
Committed by
Alexandre Julliard
Feb 13, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sapi: Implement ISpeechObjectTokens::get_Count.
parent
59a7ee1a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
token.c
dlls/sapi/tests/token.c
+5
-0
token.c
dlls/sapi/token.c
+5
-2
No files found.
dlls/sapi/tests/token.c
View file @
261d7c3d
...
...
@@ -362,6 +362,11 @@ static void test_token_enum(void)
hr
=
ISpObjectTokenEnumBuilder_AddTokens
(
token_enum
,
3
,
tokens
);
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
count
=
0xdeadbeef
;
hr
=
ISpeechObjectTokens_get_Count
(
speech_tokens
,
(
LONG
*
)
&
count
);
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
ok
(
count
==
3
,
"got %lu
\n
"
,
count
);
hr
=
ISpeechObjectTokens_get__NewEnum
(
speech_tokens
,
&
unk
);
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
hr
=
IUnknown_QueryInterface
(
unk
,
&
IID_IEnumVARIANT
,
(
void
**
)
&
enumvar
);
...
...
dlls/sapi/token.c
View file @
261d7c3d
...
...
@@ -1313,8 +1313,11 @@ static HRESULT WINAPI speech_tokens_Invoke( ISpeechObjectTokens *iface,
static
HRESULT
WINAPI
speech_tokens_get_Count
(
ISpeechObjectTokens
*
iface
,
LONG
*
count
)
{
FIXME
(
"stub
\n
"
);
return
E_NOTIMPL
;
struct
token_enum
*
This
=
impl_from_ISpeechObjectTokens
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
count
);
return
ISpObjectTokenEnumBuilder_GetCount
(
&
This
->
ISpObjectTokenEnumBuilder_iface
,
(
ULONG
*
)
count
);
}
static
HRESULT
WINAPI
speech_tokens_Item
(
ISpeechObjectTokens
*
iface
,
...
...
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