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
c9e3c27f
Commit
c9e3c27f
authored
Dec 28, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use FindMimeFromData to find MIME if moniker doesn't report it.
parent
c39cd4c0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
navigate.c
dlls/mshtml/navigate.c
+15
-0
No files found.
dlls/mshtml/navigate.c
View file @
c9e3c27f
...
...
@@ -952,6 +952,21 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
&&
(
BYTE
)
This
->
nsstream
->
buf
[
1
]
==
0xfe
)
This
->
nschannel
->
charset
=
heap_strdupA
(
UTF16_STR
);
if
(
!
This
->
nschannel
->
content_type
)
{
WCHAR
*
mime
;
hres
=
FindMimeFromData
(
NULL
,
NULL
,
This
->
nsstream
->
buf
,
This
->
nsstream
->
buf_size
,
NULL
,
0
,
&
mime
,
0
);
if
(
FAILED
(
hres
))
return
hres
;
TRACE
(
"Found MIME %s
\n
"
,
debugstr_w
(
mime
));
This
->
nschannel
->
content_type
=
heap_strdupWtoA
(
mime
);
CoTaskMemFree
(
mime
);
if
(
!
This
->
nschannel
->
content_type
)
return
E_OUTOFMEMORY
;
}
on_start_nsrequest
(
This
);
if
(
This
->
window
)
...
...
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