Gabriel Ivăncescu : mshtml: Handle empty status text when processing the response.

Alexandre Julliard julliard at winehq.org
Fri May 27 16:35:30 CDT 2022


Module: wine
Branch: master
Commit: 0fd3b8ad3760120bb19c53fcd2991850960b9a1b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=0fd3b8ad3760120bb19c53fcd2991850960b9a1b

Author: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Date:   Thu May 26 19:54:27 2022 +0300

mshtml: Handle empty status text when processing the response.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mshtml/navigate.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/navigate.c b/dlls/mshtml/navigate.c
index e750ff28ee1..d5ec368e375 100644
--- a/dlls/mshtml/navigate.c
+++ b/dlls/mshtml/navigate.c
@@ -1690,8 +1690,9 @@ static HRESULT process_response_status_text(const WCHAR *header, const WCHAR *he
         return E_FAIL;
     header = wcschr(header + 1, ' ');
     if(!header || header >= header_end)
-        return E_FAIL;
-    ++header;
+        header = header_end;
+    else
+        ++header;
 
     *status_text = heap_strndupWtoU(header, header_end - header);
 




More information about the wine-cvs mailing list