itss: Use object_name in FindMimeFromData.
This commit is contained in:
parent
62c257acca
commit
dda4420f05
|
@ -226,7 +226,7 @@ static HRESULT WINAPI ITSProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
|
||||||
HeapFree(GetProcessHeap(), 0, file_name);
|
HeapFree(GetProcessHeap(), 0, file_name);
|
||||||
|
|
||||||
/* FIXME: Native doesn't use FindMimeFromData */
|
/* FIXME: Native doesn't use FindMimeFromData */
|
||||||
hres = FindMimeFromData(NULL, szUrl, NULL, 0, NULL, 0, &mime, 0);
|
hres = FindMimeFromData(NULL, object_name, NULL, 0, NULL, 0, &mime, 0);
|
||||||
if(SUCCEEDED(hres)) {
|
if(SUCCEEDED(hres)) {
|
||||||
IInternetProtocolSink_ReportProgress(pOIProtSink, BINDSTATUS_MIMETYPEAVAILABLE, mime);
|
IInternetProtocolSink_ReportProgress(pOIProtSink, BINDSTATUS_MIMETYPEAVAILABLE, mime);
|
||||||
CoTaskMemFree(mime);
|
CoTaskMemFree(mime);
|
||||||
|
|
Loading…
Reference in New Issue