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
7e4db7df
Commit
7e4db7df
authored
Oct 09, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Moved BOM enum to binding.h.
parent
8a570711
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
binding.h
dlls/mshtml/binding.h
+7
-1
navigate.c
dlls/mshtml/navigate.c
+2
-6
No files found.
dlls/mshtml/binding.h
View file @
7e4db7df
...
...
@@ -25,6 +25,12 @@ typedef enum {
METHOD_POST
}
REQUEST_METHOD
;
typedef
enum
{
BOM_NONE
,
BOM_UTF8
,
BOM_UTF16
}
binding_bom_t
;
typedef
struct
{
nsIHttpChannel
nsIHttpChannel_iface
;
nsIUploadChannel
nsIUploadChannel_iface
;
...
...
@@ -71,7 +77,7 @@ struct BSCallback {
ULONG
readed
;
DWORD
bindf
;
BOOL
bindinfo_ready
;
in
t
bom
;
binding_bom_
t
bom
;
IMoniker
*
mon
;
IBinding
*
binding
;
...
...
dlls/mshtml/navigate.c
View file @
7e4db7df
...
...
@@ -52,12 +52,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static
const
WCHAR
emptyW
[]
=
{
0
};
static
const
WCHAR
text_htmlW
[]
=
{
't'
,
'e'
,
'x'
,
't'
,
'/'
,
'h'
,
't'
,
'm'
,
'l'
,
0
};
enum
{
BOM_NONE
,
BOM_UTF8
,
BOM_UTF16
};
struct
nsProtocolStream
{
nsIInputStream
nsIInputStream_iface
;
...
...
@@ -1203,6 +1197,8 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
break
;
case
BOM_UTF16
:
This
->
nschannel
->
charset
=
heap_strdupA
(
UTF16_STR
);
case
BOM_NONE
:
/* FIXME: Get charset from HTTP headers */
;
}
if
(
!
This
->
nschannel
->
content_type
)
{
...
...
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