Dmitry Timoshkov : wininet: Fix off by 1 error when parsing time.

Alexandre Julliard julliard at winehq.org
Tue Oct 15 13:11:26 CDT 2019


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

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Mon Oct 14 12:44:13 2019 +0800

wininet: Fix off by 1 error when parsing time.

This patch makes HTTP_ParseRfc1123Date() work for dates without space
before "GMT".

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wininet/http.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index fc412849eb..cf156a9eb5 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -4375,8 +4375,7 @@ static BOOL HTTP_ParseTime(SYSTEMTIME *st, LPCWSTR *str)
         ERR("unexpected second in time format %s\n", debugstr_w(ptr));
         return FALSE;
     }
-    ptr = nextPtr + 1;
-    *str = ptr;
+    *str = nextPtr;
     st->wSecond = (WORD)num;
     return TRUE;
 }




More information about the wine-cvs mailing list