wininet: Initialize length of values that aren't being requested.

This commit is contained in:
Juan Lang 2007-11-08 09:09:36 -08:00 committed by Alexandre Julliard
parent 2e4242b545
commit f15bbdcd5a
1 changed files with 4 additions and 0 deletions

View File

@ -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;