Commit 6a976801 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

wininet: Fix off by 1 error when parsing time.

This patch makes HTTP_ParseRfc1123Date() work for dates without space before "GMT". Signed-off-by: 's avatarDmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 1283f380
...@@ -4375,8 +4375,7 @@ static BOOL HTTP_ParseTime(SYSTEMTIME *st, LPCWSTR *str) ...@@ -4375,8 +4375,7 @@ static BOOL HTTP_ParseTime(SYSTEMTIME *st, LPCWSTR *str)
ERR("unexpected second in time format %s\n", debugstr_w(ptr)); ERR("unexpected second in time format %s\n", debugstr_w(ptr));
return FALSE; return FALSE;
} }
ptr = nextPtr + 1; *str = nextPtr;
*str = ptr;
st->wSecond = (WORD)num; st->wSecond = (WORD)num;
return TRUE; return TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment