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@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Dmitry Timoshkov 2019-10-14 12:44:13 +08:00 committed by Alexandre Julliard
parent 1283f3807e
commit 6a976801b1
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}