wininet: Initialize user_len before GetUserNameW call.

Fixes a regression introduced by 441347f084.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Jacek Caban<jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2016-05-19 21:25:04 +02:00 committed by Alexandre Julliard
parent b68e03f9c9
commit ff1fb7f51c
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ static WCHAR *create_cookie_url(substr_t domain, substr_t path, substr_t *ret_pa
static const WCHAR cookie_prefix[] = {'C','o','o','k','i','e',':'};
user_len = sizeof(user)/sizeof(WCHAR);
if(!GetUserNameW(user, &user_len))
return FALSE;
user_len--;