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
ed8b219c
Commit
ed8b219c
authored
Sep 22, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Sep 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Charset name comparison should be case insensitive.
parent
014fb479
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
mimeintl.c
dlls/inetcomm/mimeintl.c
+1
-1
mimeintl.c
dlls/inetcomm/tests/mimeintl.c
+3
-0
No files found.
dlls/inetcomm/mimeintl.c
View file @
ed8b219c
...
@@ -250,7 +250,7 @@ static HRESULT WINAPI MimeInternat_FindCharset(IMimeInternational *iface, LPCSTR
...
@@ -250,7 +250,7 @@ static HRESULT WINAPI MimeInternat_FindCharset(IMimeInternational *iface, LPCSTR
LIST_FOR_EACH_ENTRY
(
charset
,
&
This
->
charsets
,
charset_entry
,
entry
)
LIST_FOR_EACH_ENTRY
(
charset
,
&
This
->
charsets
,
charset_entry
,
entry
)
{
{
if
(
!
strcmp
(
charset
->
cs_info
.
szName
,
pszCharset
))
if
(
!
lstrcmpiA
(
charset
->
cs_info
.
szName
,
pszCharset
))
{
{
*
phCharset
=
charset
->
cs_info
.
hCharset
;
*
phCharset
=
charset
->
cs_info
.
hCharset
;
hr
=
S_OK
;
hr
=
S_OK
;
...
...
dlls/inetcomm/tests/mimeintl.c
View file @
ed8b219c
...
@@ -149,6 +149,9 @@ static void test_charset(void)
...
@@ -149,6 +149,9 @@ static void test_charset(void)
hr
=
IMimeInternational_FindCharset
(
internat
,
"windows-1252"
,
&
hcs
);
hr
=
IMimeInternational_FindCharset
(
internat
,
"windows-1252"
,
&
hcs
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
hcs_windows_1252
==
hcs
,
"got different hcharsets for the same name
\n
"
);
ok
(
hcs_windows_1252
==
hcs
,
"got different hcharsets for the same name
\n
"
);
hr
=
IMimeInternational_FindCharset
(
internat
,
"WiNdoWs-1252"
,
&
hcs
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
hcs_windows_1252
==
hcs
,
"got different hcharsets for the same name
\n
"
);
hr
=
IMimeInternational_FindCharset
(
internat
,
"windows-1251"
,
&
hcs_windows_1251
);
hr
=
IMimeInternational_FindCharset
(
internat
,
"windows-1251"
,
&
hcs_windows_1251
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
...
...
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