Hans Leidekker : winhttp: Fix return value for relative redirects.

Alexandre Julliard julliard at winehq.org
Thu Sep 23 15:35:06 CDT 2021


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Thu Sep 23 14:58:28 2021 +0200

winhttp: Fix return value for relative redirects.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winhttp/request.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index dce3232c0e3..0155d5780fe 100644
--- a/dlls/winhttp/request.c
+++ b/dlls/winhttp/request.c
@@ -2575,6 +2575,7 @@ static DWORD handle_redirect( struct request *request, DWORD status )
         }
         free( request->path );
         request->path = path;
+        ret = ERROR_SUCCESS;
 
         send_callback( &request->hdr, WINHTTP_CALLBACK_STATUS_REDIRECT, location, len_loc + 1 );
     }




More information about the wine-cvs mailing list