[PATCH] wininet: Fix off by 1 error when parsing time.
Dmitry Timoshkov
dmitry at baikal.ru
Sun Oct 13 23:44:13 CDT 2019
This patch makes HTTP_ParseRfc1123Date() work for dates without space
before "GMT". Since this is an internal helper there's no way to add
a test case for this.
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
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;
}
--
2.20.1
More information about the wine-devel
mailing list