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
f91c8578
Commit
f91c8578
authored
Oct 17, 2011
by
Dan Kegel
Committed by
Alexandre Julliard
Oct 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang/tests: Don't call lstrcpyW on a null string.
parent
acaa0dc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
mlang.c
dlls/mlang/tests/mlang.c
+8
-4
No files found.
dlls/mlang/tests/mlang.c
View file @
f91c8578
...
...
@@ -1203,21 +1203,25 @@ static void test_GetRfc1766Info(IMultiLanguage2 *iML2)
"#%02d: got '%s' (expected '%s')
\n
"
,
i
,
rfc1766A
,
info_table
[
i
].
rfc1766
);
/* Some IE versions truncate an oversized name one character to short */
lstrcpyW
(
short_broken_name
,
info_table
[
i
].
broken_name
);
short_broken_name
[
MAX_LOCALE_NAME
-
2
]
=
'\0'
;
if
(
info_table
[
i
].
broken_name
)
{
lstrcpyW
(
short_broken_name
,
info_table
[
i
].
broken_name
);
short_broken_name
[
MAX_LOCALE_NAME
-
2
]
=
0
;
}
if
(
info_table
[
i
].
todo
&
TODO_NAME
)
{
todo_wine
ok
(
(
!
lstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
localename
))
||
(
info_table
[
i
].
broken_name
&&
(
broken
(
!
lstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
broken_name
))
||
/* IE < 6.0 */
broken
(
!
lstrcmpW
(
prfc
->
wszLocaleName
,
short_broken_name
)),
broken
(
!
lstrcmpW
(
prfc
->
wszLocaleName
,
short_broken_name
))
))
,
"#%02d: got %s (expected %s)
\n
"
,
i
,
wine_dbgstr_w
(
prfc
->
wszLocaleName
),
wine_dbgstr_w
(
info_table
[
i
].
localename
));
}
else
ok
(
(
!
lstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
localename
))
||
(
info_table
[
i
].
broken_name
&&
(
broken
(
!
lstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
broken_name
))
||
/* IE < 6.0 */
broken
(
!
lstrcmpW
(
prfc
->
wszLocaleName
,
short_broken_name
)),
broken
(
!
lstrcmpW
(
prfc
->
wszLocaleName
,
short_broken_name
))
))
,
"#%02d: got %s (expected %s)
\n
"
,
i
,
wine_dbgstr_w
(
prfc
->
wszLocaleName
),
wine_dbgstr_w
(
info_table
[
i
].
localename
));
...
...
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