From 0825f4b3ff3718752b5f6addd95bc30c10f75d24 Mon Sep 17 00:00:00 2001 From: Paul Chitescu Date: Thu, 1 Jul 2010 13:17:42 +0300 Subject: [PATCH] mshtml: Pass the data read from resource to FindMimeFromData. --- dlls/mshtml/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mshtml/protocol.c b/dlls/mshtml/protocol.c index 193004dc318..14858812822 100644 --- a/dlls/mshtml/protocol.c +++ b/dlls/mshtml/protocol.c @@ -670,7 +670,7 @@ static HRESULT WINAPI ResProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl, FreeLibrary(hdll); - hres = FindMimeFromData(NULL, url_file, NULL, 0, NULL, 0, &mime, 0); + hres = FindMimeFromData(NULL, url_file, This->data, This->data_len, NULL, 0, &mime, 0); heap_free(url); if(SUCCEEDED(hres)) { IInternetProtocolSink_ReportProgress(pOIProtSink, BINDSTATUS_MIMETYPEAVAILABLE, mime);