Hans Leidekker : wininet: Initialize path buffer in InternetSetCookie.

Alexandre Julliard julliard at winehq.org
Mon Nov 19 08:19:47 CST 2007


Module: wine
Branch: master
Commit: a0c3816dbf9935a81168a3fb4fce73d79f9b6e14
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a0c3816dbf9935a81168a3fb4fce73d79f9b6e14

Author: Hans Leidekker <hans at it.vu.nl>
Date:   Sun Nov 18 18:29:37 2007 +0100

wininet: Initialize path buffer in InternetSetCookie.

---

 dlls/wininet/cookie.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wininet/cookie.c b/dlls/wininet/cookie.c
index b44c4a6..2eef2d9 100644
--- a/dlls/wininet/cookie.c
+++ b/dlls/wininet/cookie.c
@@ -454,7 +454,7 @@ BOOL WINAPI InternetSetCookieW(LPCWSTR lpszUrl, LPCWSTR lpszCookieName,
         return FALSE;
     }
 
-    hostName[0] = 0;
+    hostName[0] = path[0] = 0;
     ret = COOKIE_crackUrlSimple(lpszUrl, hostName, sizeof(hostName)/sizeof(hostName[0]), path, sizeof(path)/sizeof(path[0]));
     if (!ret || !hostName[0]) return FALSE;
 




More information about the wine-cvs mailing list