Commit ff1fb7f5 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

wininet: Initialize user_len before GetUserNameW call.

Fixes a regression introduced by 441347f0. Signed-off-by: 's avatarSebastian Lackner <sebastian@fds-team.de> Signed-off-by: Jacek Caban<jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent b68e03f9
......@@ -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--;
......
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