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
7f46f231
Commit
7f46f231
authored
Dec 05, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf/tests: Use wide-char string literals.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3118168c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
inputprocessor.c
dlls/msctf/tests/inputprocessor.c
+3
-6
No files found.
dlls/msctf/tests/inputprocessor.c
View file @
7f46f231
...
...
@@ -1112,9 +1112,6 @@ static void test_Register(void)
{
HRESULT
hr
;
static
const
WCHAR
szDesc
[]
=
{
'F'
,
'a'
,
'k'
,
'e'
,
' '
,
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
0
};
static
const
WCHAR
szFile
[]
=
{
'F'
,
'a'
,
'k'
,
'e'
,
' '
,
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
' '
,
'F'
,
'i'
,
'l'
,
'e'
,
0
};
hr
=
ITfInputProcessorProfiles_GetCurrentLanguage
(
g_ipp
,
&
gLangid
);
ok
(
SUCCEEDED
(
hr
),
"Unable to get current language id
\n
"
);
trace
(
"Current Language %x
\n
"
,
gLangid
);
...
...
@@ -1124,7 +1121,8 @@ static void test_Register(void)
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
,
ARRAY_SIZE
(
szDesc
),
szFile
,
ARRAY_SIZE
(
szFile
),
1
);
&
CLSID_FakeService
,
L"Fake Wine Service"
,
ARRAY_SIZE
(
L"Fake Wine Service"
),
L"Fake Wine Service File"
,
ARRAY_SIZE
(
L"Fake Wine Service File"
),
1
);
ok
(
SUCCEEDED
(
hr
),
"Unable to add Language Profile (%x)
\n
"
,
hr
);
}
...
...
@@ -2071,12 +2069,11 @@ static void test_InsertAtSelection(TfEditCookie ec, ITfContext *cxt)
HRESULT
hr
;
ITfInsertAtSelection
*
iis
;
ITfRange
*
range
=
NULL
;
static
const
WCHAR
txt
[]
=
{
'H'
,
'e'
,
'l'
,
'l'
,
'o'
,
' '
,
'W'
,
'o'
,
'r'
,
'l'
,
'd'
,
0
};
hr
=
ITfContext_QueryInterface
(
cxt
,
&
IID_ITfInsertAtSelection
,
(
LPVOID
*
)
&
iis
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get ITfInsertAtSelection interface
\n
"
);
test_ACP_InsertTextAtSelection
=
SINK_EXPECTED
;
hr
=
ITfInsertAtSelection_InsertTextAtSelection
(
iis
,
ec
,
0
,
txt
,
11
,
&
range
);
hr
=
ITfInsertAtSelection_InsertTextAtSelection
(
iis
,
ec
,
0
,
L"Hello World"
,
11
,
&
range
);
ok
(
SUCCEEDED
(
hr
),
"ITfInsertAtSelection_InsertTextAtSelection failed %x
\n
"
,
hr
);
sink_check_ok
(
&
test_ACP_InsertTextAtSelection
,
"InsertTextAtSelection"
);
ok
(
range
!=
NULL
,
"No range returned
\n
"
);
...
...
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