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
2eeffe8a
Commit
2eeffe8a
authored
Sep 20, 2014
by
Qian Hong
Committed by
Alexandre Julliard
Sep 22, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Using UTF-8 as default charset in bind_mon_to_wstr.
parent
e0905d78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
navigate.c
dlls/mshtml/navigate.c
+2
-5
No files found.
dlls/mshtml/navigate.c
View file @
2eeffe8a
...
@@ -938,7 +938,6 @@ static const BSCallbackVtbl BufferBSCVtbl = {
...
@@ -938,7 +938,6 @@ static const BSCallbackVtbl BufferBSCVtbl = {
HRESULT
bind_mon_to_wstr
(
HTMLInnerWindow
*
window
,
IMoniker
*
mon
,
WCHAR
**
ret
)
HRESULT
bind_mon_to_wstr
(
HTMLInnerWindow
*
window
,
IMoniker
*
mon
,
WCHAR
**
ret
)
{
{
BufferBSC
*
bsc
;
BufferBSC
*
bsc
;
int
cp
=
CP_ACP
;
WCHAR
*
text
;
WCHAR
*
text
;
HRESULT
hres
;
HRESULT
hres
;
...
@@ -981,19 +980,17 @@ HRESULT bind_mon_to_wstr(HTMLInnerWindow *window, IMoniker *mon, WCHAR **ret)
...
@@ -981,19 +980,17 @@ HRESULT bind_mon_to_wstr(HTMLInnerWindow *window, IMoniker *mon, WCHAR **ret)
break
;
break
;
case
BOM_UTF8
:
case
BOM_UTF8
:
cp
=
CP_UTF8
;
/* fallthrough */
default:
{
default:
{
DWORD
len
;
DWORD
len
;
len
=
MultiByteToWideChar
(
cp
,
0
,
bsc
->
buf
,
bsc
->
bsc
.
readed
,
NULL
,
0
);
len
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
bsc
->
buf
,
bsc
->
bsc
.
readed
,
NULL
,
0
);
text
=
heap_alloc
((
len
+
1
)
*
sizeof
(
WCHAR
));
text
=
heap_alloc
((
len
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
text
)
{
if
(
!
text
)
{
hres
=
E_OUTOFMEMORY
;
hres
=
E_OUTOFMEMORY
;
break
;
break
;
}
}
MultiByteToWideChar
(
cp
,
0
,
bsc
->
buf
,
bsc
->
bsc
.
readed
,
text
,
len
);
MultiByteToWideChar
(
CP_UTF8
,
0
,
bsc
->
buf
,
bsc
->
bsc
.
readed
,
text
,
len
);
text
[
len
]
=
0
;
text
[
len
]
=
0
;
}
}
}
}
...
...
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