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
59a7ee1a
Commit
59a7ee1a
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 ISpeechObjectToken::GetIDsOfNames.
parent
001d1a43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
token.c
dlls/sapi/tests/token.c
+7
-0
token.c
dlls/sapi/token.c
+12
-2
No files found.
dlls/sapi/tests/token.c
View file @
59a7ee1a
...
...
@@ -660,6 +660,7 @@ static IClassFactory test_class_cf = { &ClassFactoryVtbl };
static
void
test_object_token
(
void
)
{
static
const
WCHAR
test_token_id
[]
=
L"HKEY_LOCAL_MACHINE
\\
Software
\\
Winetest
\\
sapi
\\
TestToken"
;
static
const
WCHAR
*
get_description
=
L"GetDescription"
;
ISpObjectToken
*
token
;
IDispatch
*
disp
;
...
...
@@ -671,6 +672,7 @@ static void test_object_token(void)
ISpObjectTokenCategory
*
cat
;
DWORD
regid
;
IUnknown
*
obj
;
DISPID
dispid
;
DISPPARAMS
params
;
VARIANT
arg
,
ret
;
...
...
@@ -919,6 +921,11 @@ static void test_object_token(void)
ok
(
tempB
&&
!
wcscmp
(
tempB
,
L"TestToken"
),
"got %s
\n
"
,
wine_dbgstr_w
(
tempB
)
);
SysFreeString
(
tempB
);
dispid
=
0xdeadbeef
;
hr
=
ISpeechObjectToken_GetIDsOfNames
(
speech_token
,
&
IID_NULL
,
(
WCHAR
**
)
&
get_description
,
1
,
0x409
,
&
dispid
);
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
ok
(
dispid
==
DISPID_SOTGetDescription
,
"got %08lx
\n
"
,
dispid
);
memset
(
&
params
,
0
,
sizeof
(
params
)
);
params
.
cArgs
=
1
;
params
.
cNamedArgs
=
0
;
...
...
dlls/sapi/token.c
View file @
59a7ee1a
...
...
@@ -1787,8 +1787,18 @@ static HRESULT WINAPI speech_token_GetIDsOfNames( ISpeechObjectToken *iface,
LCID
lcid
,
DISPID
*
dispids
)
{
FIXME
(
"stub
\n
"
);
return
E_NOTIMPL
;
ITypeInfo
*
ti
;
HRESULT
hr
;
TRACE
(
"(%p)->(%s %p %u %#lx %p)
\n
"
,
iface
,
debugstr_guid
(
iid
),
names
,
count
,
lcid
,
dispids
);
if
(
FAILED
(
hr
=
get_typeinfo
(
ISpeechObjectToken_tid
,
&
ti
)))
return
hr
;
hr
=
ITypeInfo_GetIDsOfNames
(
ti
,
names
,
count
,
dispids
);
ITypeInfo_Release
(
ti
);
return
hr
;
}
static
HRESULT
WINAPI
speech_token_Invoke
(
ISpeechObjectToken
*
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