[PATCH 2/5] mshtml: Do not override existing content type with a detected mime type.

Gabriel Ivăncescu wine at gitlab.winehq.org
Thu Jul 7 09:18:17 CDT 2022


From: Gabriel Ivăncescu <gabrielopcode at gmail.com>

Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
 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 5d74cc15e5d..94ad0ea1988 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:
-- 
GitLab


https://gitlab.winehq.org/wine/wine/-/merge_requests/399



More information about the wine-devel mailing list