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
262a41ca
Commit
262a41ca
authored
Feb 24, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Use the standard WideCharToMultiByte instead of wine_utf8_wcstombs.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0301c09d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
url.c
dlls/shlwapi/url.c
+6
-7
No files found.
dlls/shlwapi/url.c
View file @
262a41ca
...
@@ -1200,16 +1200,15 @@ HRESULT WINAPI UrlEscapeW(
...
@@ -1200,16 +1200,15 @@ HRESULT WINAPI UrlEscapeW(
if
((
cur
>=
0xd800
&&
cur
<=
0xdfff
)
&&
if
((
cur
>=
0xd800
&&
cur
<=
0xdfff
)
&&
(
src
[
1
]
>=
0xdc00
&&
src
[
1
]
<=
0xdfff
))
(
src
[
1
]
>=
0xdc00
&&
src
[
1
]
<=
0xdfff
))
{
{
WCHAR
sur
[
2
];
len
=
WideCharToMultiByte
(
CP_UTF8
,
WC_ERR_INVALID_CHARS
,
src
,
2
,
utf
,
sizeof
(
utf
),
NULL
,
NULL
);
sur
[
0
]
=
cur
;
src
++
;
sur
[
1
]
=
*++
src
;
len
=
wine_utf8_wcstombs
(
WC_ERR_INVALID_CHARS
,
sur
,
2
,
utf
,
sizeof
(
utf
));
}
}
else
else
len
=
wine_utf8_wcstombs
(
WC_ERR_INVALID_CHARS
,
&
cur
,
1
,
utf
,
sizeof
(
utf
));
len
=
WideCharToMultiByte
(
CP_UTF8
,
WC_ERR_INVALID_CHARS
,
&
cur
,
1
,
utf
,
sizeof
(
utf
),
NULL
,
NULL
);
if
(
len
<
0
)
{
if
(
!
len
)
{
utf
[
0
]
=
0xef
;
utf
[
0
]
=
0xef
;
utf
[
1
]
=
0xbf
;
utf
[
1
]
=
0xbf
;
utf
[
2
]
=
0xbd
;
utf
[
2
]
=
0xbd
;
...
...
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