Module: wine Branch: master Commit: f15bbdcd5afb1ccf6f4771df6f6bd27c03511562 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f15bbdcd5afb1ccf6f4771df6f...
Author: Juan Lang juan.lang@gmail.com Date: Thu Nov 8 09:09:36 2007 -0800
wininet: Initialize length of values that aren't being requested.
---
dlls/wininet/cookie.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/wininet/cookie.c b/dlls/wininet/cookie.c index 31a0e19..f5f3975 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;