mshtml: Pass the data read from resource to FindMimeFromData.

This commit is contained in:
Paul Chitescu 2010-07-01 13:17:42 +03:00 committed by Alexandre Julliard
parent fa49b9f226
commit 0825f4b3ff
1 changed files with 1 additions and 1 deletions

View File

@ -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);