From 101c18537af2ab72b711c25403e89ad3026841cf Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Sat, 8 Jul 2006 16:08:24 +0200 Subject: [PATCH] urlmon: Always verify mime using FindMimeFromData. --- dlls/urlmon/binding.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dlls/urlmon/binding.c b/dlls/urlmon/binding.c index 52e7de3f384..4277cb2df3a 100644 --- a/dlls/urlmon/binding.c +++ b/dlls/urlmon/binding.c @@ -862,12 +862,8 @@ static HRESULT WINAPI InternetProtocolSink_ReportData(IInternetProtocolSink *ifa fill_stream_buffer(This->stream); - /* FIXME: Always call FindMediaFromData (its implementation is not yet ready for this). */ - if(This->mime) - mime = This->mime; - else - FindMimeFromData(NULL, This->url, This->stream->buf, - min(This->stream->buf_size, 255), This->mime, 0, &mime, 0); + FindMimeFromData(NULL, This->url, This->stream->buf, + min(This->stream->buf_size, 255), This->mime, 0, &mime, 0); on_progress(This, ulProgress, ulProgressMax, BINDSTATUS_MIMETYPEAVAILABLE, mime); }