mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 18:13:38 +00:00
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);
|
||||
|
||||
/* 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)) {
|
||||
IInternetProtocolSink_ReportProgress(pOIProtSink, BINDSTATUS_MIMETYPEAVAILABLE, mime);
|
||||
CoTaskMemFree(mime);
|
||||
|
|
Loading…
Reference in a new issue