mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:23:01 +00:00
[WINESYNC] wininet: Handle empty expires for cookie setting.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id c06e00ee6a15fd77faf66b28edac5e84ad30b550 by Jactry Zeng <jzeng@codeweavers.com>
This commit is contained in:
parent
9982fa3c75
commit
94e13ca59b
3 changed files with 16 additions and 6 deletions
|
@ -981,7 +981,7 @@ DWORD set_cookie(substr_t domain, substr_t path, substr_t name, substr_t data, D
|
|||
|
||||
substr_skip(&data, len);
|
||||
|
||||
if(end_ptr - data.str < ARRAY_SIZE(buf)-1) {
|
||||
if(end_ptr > data.str && (end_ptr - data.str < ARRAY_SIZE(buf) - 1)) {
|
||||
memcpy(buf, data.str, data.len*sizeof(WCHAR));
|
||||
buf[data.len] = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue