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
89bf94c0
Commit
89bf94c0
authored
Aug 19, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang/tests: Use the global wine_dbgstr_w instead of a local variant.
parent
f3d87838
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
40 deletions
+2
-40
mlang.c
dlls/mlang/tests/mlang.c
+2
-40
No files found.
dlls/mlang/tests/mlang.c
View file @
89bf94c0
...
...
@@ -282,44 +282,6 @@ static void mylstrcpyW(WCHAR* str1, const WCHAR* str2)
*
str1
=
'\0'
;
}
#define DEBUGSTR_W_MAXLEN 64
static
CHAR
*
debugstr_w
(
const
WCHAR
*
strW
)
{
static
CHAR
buffers
[
DEBUGSTR_W_MAXLEN
*
2
];
static
DWORD
pos
=
0
;
CHAR
*
strA
;
DWORD
len
=
DEBUGSTR_W_MAXLEN
-
4
;
strA
=
&
buffers
[
pos
];
*
strA
++
=
'L'
;
*
strA
++
=
'"'
;
while
(
*
strW
&&
(
len
>
4
))
{
if
((
*
strW
<
' '
)
||
(
*
strW
>
126
))
{
sprintf
(
strA
,
"
\\
%04x"
,
*
strW
);
strA
+=
5
;
len
-=
5
;
}
else
{
*
strA
++
=
*
strW
;
len
--
;
}
strW
++
;
}
*
strA
++
=
'"'
;
*
strA
=
'\0'
;
strA
=
&
buffers
[
pos
];
pos
+=
DEBUGSTR_W_MAXLEN
;
if
(
pos
>=
sizeof
(
buffers
))
pos
=
0
;
return
strA
;
}
static
void
test_multibyte_to_unicode_translations
(
IMultiLanguage2
*
iML2
)
{
/* these APIs are broken regarding constness of the input buffer */
...
...
@@ -1296,14 +1258,14 @@ static void test_GetRfc1766Info(IMultiLanguage2 *iML2)
broken
(
!
mylstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
broken_name
))
||
/* IE < 6.0 */
broken
(
!
mylstrcmpW
(
prfc
->
wszLocaleName
,
short_broken_name
)),
"#%02d: got %s (expected %s)
\n
"
,
i
,
debugstr_w
(
prfc
->
wszLocaleName
),
debu
gstr_w
(
info_table
[
i
].
localename
));
wine_dbgstr_w
(
prfc
->
wszLocaleName
),
wine_db
gstr_w
(
info_table
[
i
].
localename
));
}
else
ok
(
(
!
mylstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
localename
))
||
broken
(
!
mylstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
broken_name
))
||
/* IE < 6.0 */
broken
(
!
mylstrcmpW
(
prfc
->
wszLocaleName
,
short_broken_name
)),
"#%02d: got %s (expected %s)
\n
"
,
i
,
debugstr_w
(
prfc
->
wszLocaleName
),
debu
gstr_w
(
info_table
[
i
].
localename
));
wine_dbgstr_w
(
prfc
->
wszLocaleName
),
wine_db
gstr_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