From: "Gabriel Ivăncescu" Subject: [PATCH v2 2/5] mshtml: Do not override existing content type with a detected mime type. Message-Id: <904c05c25c1993ec8ea75f6c940476c235c0bd8b.1654711042.git.gabrielopcode@gmail.com> Date: Wed, 8 Jun 2022 21:01:08 +0300 In-Reply-To: <3e051b5fb22a2a464a38a796858c645c9c95aca8.1654711042.git.gabrielopcode@gmail.com> References: <3e051b5fb22a2a464a38a796858c645c9c95aca8.1654711042.git.gabrielopcode@gmail.com> Signed-off-by: Gabriel Ivăncescu --- 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