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
5da1f826
Commit
5da1f826
authored
Jun 04, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
56a232b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
inputprocessor.c
dlls/msctf/tests/inputprocessor.c
+3
-2
No files found.
dlls/msctf/tests/inputprocessor.c
View file @
5da1f826
...
...
@@ -981,7 +981,8 @@ static void test_Register(void)
ok
(
SUCCEEDED
(
hr
),
"Unable to register COM for TextService
\n
"
);
hr
=
ITfInputProcessorProfiles_Register
(
g_ipp
,
&
CLSID_FakeService
);
ok
(
SUCCEEDED
(
hr
),
"Unable to register text service(%x)
\n
"
,
hr
);
hr
=
ITfInputProcessorProfiles_AddLanguageProfile
(
g_ipp
,
&
CLSID_FakeService
,
gLangid
,
&
CLSID_FakeService
,
szDesc
,
sizeof
(
szDesc
)
/
sizeof
(
WCHAR
),
szFile
,
sizeof
(
szFile
)
/
sizeof
(
WCHAR
),
1
);
hr
=
ITfInputProcessorProfiles_AddLanguageProfile
(
g_ipp
,
&
CLSID_FakeService
,
gLangid
,
&
CLSID_FakeService
,
szDesc
,
ARRAY_SIZE
(
szDesc
),
szFile
,
ARRAY_SIZE
(
szFile
),
1
);
ok
(
SUCCEEDED
(
hr
),
"Unable to add Language Profile (%x)
\n
"
,
hr
);
}
...
...
@@ -2088,7 +2089,7 @@ static void enum_compartments(ITfCompartmentMgr *cmpmgr, REFGUID present, REFGUI
{
WCHAR
str
[
50
];
CHAR
strA
[
50
];
StringFromGUID2
(
&
g
,
str
,
sizeof
(
str
)
/
sizeof
(
str
[
0
]
));
StringFromGUID2
(
&
g
,
str
,
ARRAY_SIZE
(
str
));
WideCharToMultiByte
(
CP_ACP
,
0
,
str
,
-
1
,
strA
,
sizeof
(
strA
),
0
,
0
);
trace
(
"found %s
\n
"
,
strA
);
if
(
present
&&
IsEqualGUID
(
present
,
&
g
))
...
...
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