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
52b2b5b7
Commit
52b2b5b7
authored
Oct 02, 2008
by
Aric Stewart
Committed by
Alexandre Julliard
Oct 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang: Correct use of uninitialized rfcstr value (Coverity 796).
parent
f55afa8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
mlang.c
dlls/mlang/tests/mlang.c
+16
-16
No files found.
dlls/mlang/tests/mlang.c
View file @
52b2b5b7
...
...
@@ -406,16 +406,16 @@ static void test_EnumCodePages(IMultiLanguage2 *iML2, DWORD flags)
if
(
memcmp
(
cpinfo
[
i
].
wszWebCharset
,
autoW
,
5
*
sizeof
(
WCHAR
)))
{
ok
(
ret
==
S_OK
,
"IMultiLanguage2_GetCharsetInfo failed: %08x
\n
"
,
ret
);
#ifdef DUMP_CP_INFO
#ifdef DUMP_CP_INFO
trace
(
"%s: %u %u %s
\n
"
,
wine_dbgstr_w
(
cpinfo
[
i
].
wszWebCharset
),
mcsi
.
uiCodePage
,
mcsi
.
uiInternetEncoding
,
wine_dbgstr_w
(
mcsi
.
wszCharset
));
#endif
#endif
ok
(
!
lstrcmpiW
(
cpinfo
[
i
].
wszWebCharset
,
mcsi
.
wszCharset
),
#ifdef DUMP_CP_INFO
#ifdef DUMP_CP_INFO
"%s != %s
\n
"
,
wine_dbgstr_w
(
cpinfo
[
i
].
wszWebCharset
),
wine_dbgstr_w
(
mcsi
.
wszCharset
));
#else
#else
"wszWebCharset mismatch
\n
"
);
#endif
#endif
if
(
0
)
{
...
...
@@ -437,16 +437,16 @@ static void test_EnumCodePages(IMultiLanguage2 *iML2, DWORD flags)
if
(
memcmp
(
cpinfo
[
i
].
wszHeaderCharset
,
autoW
,
5
*
sizeof
(
WCHAR
)))
{
ok
(
ret
==
S_OK
,
"IMultiLanguage2_GetCharsetInfo failed: %08x
\n
"
,
ret
);
#ifdef DUMP_CP_INFO
#ifdef DUMP_CP_INFO
trace
(
"%s: %u %u %s
\n
"
,
wine_dbgstr_w
(
cpinfo
[
i
].
wszHeaderCharset
),
mcsi
.
uiCodePage
,
mcsi
.
uiInternetEncoding
,
wine_dbgstr_w
(
mcsi
.
wszCharset
));
#endif
#endif
ok
(
!
lstrcmpiW
(
cpinfo
[
i
].
wszHeaderCharset
,
mcsi
.
wszCharset
),
#ifdef DUMP_CP_INFO
#ifdef DUMP_CP_INFO
"%s != %s
\n
"
,
wine_dbgstr_w
(
cpinfo
[
i
].
wszHeaderCharset
),
wine_dbgstr_w
(
mcsi
.
wszCharset
));
#else
#else
"wszHeaderCharset mismatch
\n
"
);
#endif
#endif
if
(
0
)
{
...
...
@@ -468,16 +468,16 @@ static void test_EnumCodePages(IMultiLanguage2 *iML2, DWORD flags)
if
(
memcmp
(
cpinfo
[
i
].
wszBodyCharset
,
autoW
,
5
*
sizeof
(
WCHAR
)))
{
ok
(
ret
==
S_OK
,
"IMultiLanguage2_GetCharsetInfo failed: %08x
\n
"
,
ret
);
#ifdef DUMP_CP_INFO
#ifdef DUMP_CP_INFO
trace
(
"%s: %u %u %s
\n
"
,
wine_dbgstr_w
(
cpinfo
[
i
].
wszBodyCharset
),
mcsi
.
uiCodePage
,
mcsi
.
uiInternetEncoding
,
wine_dbgstr_w
(
mcsi
.
wszCharset
));
#endif
#endif
ok
(
!
lstrcmpiW
(
cpinfo
[
i
].
wszBodyCharset
,
mcsi
.
wszCharset
),
#ifdef DUMP_CP_INFO
#ifdef DUMP_CP_INFO
"%s != %s
\n
"
,
wine_dbgstr_w
(
cpinfo
[
i
].
wszBodyCharset
),
wine_dbgstr_w
(
mcsi
.
wszCharset
));
#else
#else
"wszBodyCharset mismatch
\n
"
);
#endif
#endif
if
(
0
)
{
...
...
@@ -815,8 +815,8 @@ static void test_GetRfc1766FromLcid(IMultiLanguage2 *iML2)
hr
=
IMultiLanguage2_GetRfc1766FromLcid
(
iML2
,
lcid
,
&
rfcstr
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
ok_w2
(
"Expected
\"
%s
\"
, got
\"
%s
\"
n"
,
kok
,
rfcstr
);
SysFreeString
(
rfcstr
);
}
SysFreeString
(
rfcstr
);
}
static
void
test_IMultiLanguage2_ConvertStringFromUnicode
(
IMultiLanguage2
*
iML2
)
...
...
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