Paul Chitescu : mshtml: Pass the data read from resource to FindMimeFromData.
Alexandre Julliard
julliard at winehq.org
Thu Jul 1 11:19:32 CDT 2010
Module: wine
Branch: master
Commit: 0825f4b3ff3718752b5f6addd95bc30c10f75d24
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0825f4b3ff3718752b5f6addd95bc30c10f75d24
Author: Paul Chitescu <paulc at voip.null.ro>
Date: Thu Jul 1 13:17:42 2010 +0300
mshtml: Pass the data read from resource to FindMimeFromData.
---
dlls/mshtml/protocol.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/protocol.c b/dlls/mshtml/protocol.c
index 193004d..1485881 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);
More information about the wine-cvs
mailing list