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
6e8d4508
Commit
6e8d4508
authored
Feb 11, 2024
by
Shaun Ren
Committed by
Alexandre Julliard
Feb 13, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sapi: Implement ISpeechObjectTokens::Invoke.
parent
6f2a0c41
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
3 deletions
+24
-3
dispatch.c
dlls/sapi/dispatch.c
+1
-0
sapi_private.h
dlls/sapi/sapi_private.h
+1
-0
token.c
dlls/sapi/tests/token.c
+10
-1
token.c
dlls/sapi/token.c
+12
-2
No files found.
dlls/sapi/dispatch.c
View file @
6e8d4508
...
...
@@ -35,6 +35,7 @@ static ITypeInfo *typeinfos[last_tid];
static
REFIID
tid_id
[]
=
{
&
IID_ISpeechObjectToken
,
&
IID_ISpeechObjectTokens
,
};
HRESULT
get_typeinfo
(
enum
type_id
tid
,
ITypeInfo
**
ret
)
...
...
dlls/sapi/sapi_private.h
View file @
6e8d4508
...
...
@@ -56,6 +56,7 @@ HRESULT token_create( IUnknown *outer, REFIID iid, void **obj );
enum
type_id
{
ISpeechObjectToken_tid
,
ISpeechObjectTokens_tid
,
last_tid
};
...
...
dlls/sapi/tests/token.c
View file @
6e8d4508
...
...
@@ -256,7 +256,8 @@ static void test_token_enum(void)
ISpObjectToken
*
out_tokens
[
5
];
WCHAR
token_id
[
MAX_PATH
];
ULONG
count
;
VARIANT
vars
[
3
];
VARIANT
vars
[
3
],
ret
;
DISPPARAMS
params
;
int
i
;
hr
=
CoCreateInstance
(
&
CLSID_SpObjectTokenEnum
,
NULL
,
CLSCTX_INPROC_SERVER
,
...
...
@@ -402,6 +403,14 @@ static void test_token_enum(void)
IEnumVARIANT_Release
(
enumvar
);
memset
(
&
params
,
0
,
sizeof
(
params
)
);
VariantInit
(
&
ret
);
hr
=
ISpeechObjectTokens_Invoke
(
speech_tokens
,
DISPID_SOTsCount
,
&
IID_NULL
,
0
,
DISPATCH_PROPERTYGET
,
&
params
,
&
ret
,
NULL
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
ok
(
V_VT
(
&
ret
)
==
VT_I4
,
"got %#x
\n
"
,
V_VT
(
&
ret
)
);
ok
(
V_I4
(
&
ret
)
==
3
,
"got %ld
\n
"
,
V_I4
(
&
ret
)
);
ISpeechObjectTokens_Release
(
speech_tokens
);
ISpObjectTokenEnumBuilder_Release
(
token_enum
);
...
...
dlls/sapi/token.c
View file @
6e8d4508
...
...
@@ -1339,8 +1339,18 @@ static HRESULT WINAPI speech_tokens_Invoke( ISpeechObjectTokens *iface,
EXCEPINFO
*
excepinfo
,
UINT
*
argerr
)
{
FIXME
(
"stub
\n
"
);
return
E_NOTIMPL
;
ITypeInfo
*
ti
;
HRESULT
hr
;
TRACE
(
"(%p)->(%ld %s %#lx %#x %p %p %p %p)
\n
"
,
iface
,
dispid
,
debugstr_guid
(
iid
),
lcid
,
flags
,
params
,
result
,
excepinfo
,
argerr
);
if
(
FAILED
(
hr
=
get_typeinfo
(
ISpeechObjectTokens_tid
,
&
ti
)))
return
hr
;
hr
=
ITypeInfo_Invoke
(
ti
,
iface
,
dispid
,
flags
,
params
,
result
,
excepinfo
,
argerr
);
ITypeInfo_Release
(
ti
);
return
hr
;
}
static
HRESULT
WINAPI
speech_tokens_get_Count
(
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