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
70644be9
Commit
70644be9
authored
Jan 26, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang/tests: Get rid of strstrW().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
359de0a9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
mlang.c
dlls/mlang/tests/mlang.c
+1
-14
No files found.
dlls/mlang/tests/mlang.c
View file @
70644be9
...
...
@@ -1294,19 +1294,6 @@ static void IMLangFontLink_Test(IMLangFontLink* iMLFL)
ok
(
processed
==
0
,
"expected 0, got %d
\n
"
,
processed
);
}
/* copied from libs/wine/string.c */
static
WCHAR
*
strstrW
(
const
WCHAR
*
str
,
const
WCHAR
*
sub
)
{
while
(
*
str
)
{
const
WCHAR
*
p1
=
str
,
*
p2
=
sub
;
while
(
*
p1
&&
*
p2
&&
*
p1
==
*
p2
)
{
p1
++
;
p2
++
;
}
if
(
!*
p2
)
return
(
WCHAR
*
)
str
;
str
++
;
}
return
NULL
;
}
static
void
test_rfc1766
(
IMultiLanguage2
*
iML2
)
{
IEnumRfc1766
*
pEnumRfc1766
;
...
...
@@ -1336,7 +1323,7 @@ static void test_rfc1766(IMultiLanguage2 *iML2)
/* not an exact 1:1 correspondence between lcid and rfc1766 in the
* mlang database, e.g., nb-no -> 1044 -> no */
ok
(
strstrW
(
info
.
wszRfc1766
,
rfcstr
)
!=
NULL
,
ok
(
wcsstr
(
info
.
wszRfc1766
,
rfcstr
)
!=
NULL
,
"Expected matching locale names
\n
"
);
SysFreeString
(
rfcstr
);
...
...
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