diff --git a/dlls/wininet/cookie.c b/dlls/wininet/cookie.c index 31a0e19d0f3..f5f39755bbb 100644 --- a/dlls/wininet/cookie.c +++ b/dlls/wininet/cookie.c @@ -184,6 +184,10 @@ static void COOKIE_crackUrlSimple(LPCWSTR lpszUrl, LPWSTR hostName, int hostName UrlComponents.lpszUrlPath = path; UrlComponents.lpszUserName = NULL; UrlComponents.lpszHostName = hostName; + UrlComponents.dwExtraInfoLength = 0; + UrlComponents.dwPasswordLength = 0; + UrlComponents.dwSchemeLength = 0; + UrlComponents.dwUserNameLength = 0; UrlComponents.dwHostNameLength = hostNameLen; UrlComponents.dwUrlPathLength = pathLen;