mshtml: Pass the data read from resource to FindMimeFromData.
This commit is contained in:
parent
fa49b9f226
commit
0825f4b3ff
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue