mshtml: call FindMimeFromData with a NULL buffer in ResProtocol_Start
Austin English
austinenglish at gmail.com
Wed Nov 2 00:19:02 CDT 2011
Fixes http://bugs.winehq.org/show_bug.cgi?id=27115, a regression
introduced by 0825f4b3ff3718752b5f6addd95bc30c10f75d24.
--
-Austin
-------------- next part --------------
diff --git a/dlls/mshtml/protocol.c b/dlls/mshtml/protocol.c
index d9a008c..690f607 100644
--- a/dlls/mshtml/protocol.c
+++ b/dlls/mshtml/protocol.c
@@ -683,7 +683,7 @@ static HRESULT WINAPI ResProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
FreeLibrary(hdll);
- hres = FindMimeFromData(NULL, url_file, This->data, This->data_len, NULL, 0, &mime, 0);
+ hres = FindMimeFromData(NULL, url_file, NULL, This->data_len, NULL, 0, &mime, 0);
heap_free(url);
if(SUCCEEDED(hres)) {
IInternetProtocolSink_ReportProgress(pOIProtSink, BINDSTATUS_MIMETYPEAVAILABLE, mime);
More information about the wine-patches
mailing list