[PATCH v2 2/5] mshtml: Do not override existing content type with a detected mime type.
Gabriel Ivăncescu
gabrielopcode at gmail.com
Wed Jun 8 13:01:08 CDT 2022
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
Needed by next patch.
dlls/mshtml/navigate.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c
index 5d74cc1..94ad0ea 100644
--- a/dlls/mshtml/navigate.c
+++ b/dlls/mshtml/navigate.c
@@ -1668,10 +1668,9 @@ static HRESULT nsChannelBSC_on_progress(BSCallback *bsc, ULONG status_code, LPCW
This->nschannel = NULL;
}
- if(!This->nschannel)
+ if(!This->nschannel || This->nschannel->content_type)
return S_OK;
- heap_free(This->nschannel->content_type);
This->nschannel->content_type = heap_strdupWtoA(status_text);
break;
case BINDSTATUS_REDIRECTING:
--
2.34.1
More information about the wine-devel
mailing list