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
be4dccb3
Commit
be4dccb3
authored
Jun 13, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang/tests: Don't use sizeof in ok() to avoid printf format warnings.
parent
4ec2fcc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mlang.c
dlls/mlang/tests/mlang.c
+2
-2
No files found.
dlls/mlang/tests/mlang.c
View file @
be4dccb3
...
...
@@ -105,7 +105,7 @@ static void test_multibyte_to_unicode_translations(IMultiLanguage2 *iML2)
ret
=
IMultiLanguage2_ConvertStringToUnicode
(
iML2
,
NULL
,
CP_UNICODE
,
stringA
,
&
lenA
,
bufW
,
&
lenW
);
ok
(
ret
==
S_OK
,
"IMultiLanguage2_ConvertStringToUnicode failed: %08lx
\n
"
,
ret
);
ok
(
lenA
==
lstrlenA
(
stringA
),
"expected lenA %u, got %u
\n
"
,
lstrlenA
(
stringA
),
lenA
);
ok
(
lenW
==
lstrlenW
(
stringW
)
/
(
int
)
sizeof
(
WCHAR
),
"
expected lenW %u, got %u
\n
"
,
lstrlenW
(
stringW
)
/
sizeof
(
WCHAR
)
,
lenW
);
ok
(
lenW
==
lstrlenW
(
stringW
)
/
(
int
)
sizeof
(
WCHAR
),
"
wrong lenW %u
\n
"
,
lenW
);
ok
(
bufW
[
lenW
]
!=
0
,
"buf should not be 0 terminated
\n
"
);
bufW
[
lenW
]
=
0
;
/* -1 doesn't include 0 terminator */
ok
(
!
lstrcmpA
((
LPCSTR
)
bufW
,
stringA
),
"bufW/stringA mismatch
\n
"
);
...
...
@@ -176,7 +176,7 @@ static void test_multibyte_to_unicode_translations(IMultiLanguage2 *iML2)
TRACE_2
(
"Call IMultiLanguage2_ConvertStringFromUnicode
\n
"
);
ret
=
IMultiLanguage2_ConvertStringFromUnicode
(
iML2
,
NULL
,
CP_UNICODE
,
stringW
,
&
lenW
,
bufA
,
&
lenA
);
ok
(
ret
==
S_OK
,
"IMultiLanguage2_ConvertStringFromUnicode failed: %08lx
\n
"
,
ret
);
ok
(
lenA
==
lstrlenA
(
stringA
)
*
(
int
)
sizeof
(
WCHAR
),
"
expected lenA %u, got %u
\n
"
,
lstrlenA
(
stringA
)
*
sizeof
(
WCHAR
)
,
lenA
);
ok
(
lenA
==
lstrlenA
(
stringA
)
*
(
int
)
sizeof
(
WCHAR
),
"
wrong lenA %u
\n
"
,
lenA
);
ok
(
lenW
==
lstrlenW
(
stringW
),
"expected lenW %u, got %u
\n
"
,
lstrlenW
(
stringW
),
lenW
);
ok
(
bufA
[
lenA
]
!=
0
&&
bufA
[
lenA
+
1
]
!=
0
,
"buf should not be 0 terminated
\n
"
);
bufA
[
lenA
]
=
0
;
/* -1 doesn't include 0 terminator */
...
...
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