Piotr Caban : mshtml: Set proposed MIME to text/html on main document.

Alexandre Julliard julliard at winehq.org
Thu Mar 8 14:26:23 CST 2012


Module: wine
Branch: master
Commit: e4e86a7c0b5673110754cbc0a681d9e51a355ae3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e4e86a7c0b5673110754cbc0a681d9e51a355ae3

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Thu Mar  8 13:02:05 2012 +0100

mshtml: Set proposed MIME to text/html on main document.

---

 dlls/mshtml/navigate.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c
index e5262ef..69329c4 100644
--- a/dlls/mshtml/navigate.c
+++ b/dlls/mshtml/navigate.c
@@ -1058,6 +1058,8 @@ static void on_stop_nsrequest(nsChannelBSC *This, HRESULT result)
 
 static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
 {
+    static const WCHAR mimeTextHtml[] = {'t','e','x','t','/','h','t','m','l',0};
+
     DWORD read;
     nsresult nsres;
     HRESULT hres;
@@ -1094,7 +1096,8 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
             if(!This->nschannel->content_type) {
                 WCHAR *mime;
 
-                hres = FindMimeFromData(NULL, NULL, This->nsstream->buf, This->nsstream->buf_size, NULL, 0, &mime, 0);
+                hres = FindMimeFromData(NULL, NULL, This->nsstream->buf, This->nsstream->buf_size,
+                        This->window ? mimeTextHtml : NULL, 0, &mime, 0);
                 if(FAILED(hres))
                     return hres;
 




More information about the wine-cvs mailing list