Jacek Caban : mshtml: Return failure in GetContentType if content type is not available.

Alexandre Julliard julliard at winehq.org
Wed Oct 14 09:01:58 CDT 2009


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Oct 13 20:50:55 2009 +0200

mshtml: Return failure in GetContentType if content type is not available.

---

 dlls/mshtml/nsio.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c
index f10db48..6c0217f 100644
--- a/dlls/mshtml/nsio.c
+++ b/dlls/mshtml/nsio.c
@@ -502,9 +502,8 @@ static nsresult NSAPI nsChannel_GetContentType(nsIHttpChannel *iface, nsACString
     if(This->channel)
         return nsIChannel_GetContentType(This->channel, aContentType);
 
-    TRACE("returning default text/html\n");
-    nsACString_SetData(aContentType, "text/html");
-    return NS_OK;
+    WARN("unknown type\n");
+    return NS_ERROR_FAILURE;
 }
 
 static nsresult NSAPI nsChannel_SetContentType(nsIHttpChannel *iface,




More information about the wine-cvs mailing list