Robert Shearman : wininet: Copy from the start of the cookie name, not the cookie data.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 20 06:17:49 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 15a7d3b2b4f486db1705e34bbb778d9723afc0d2
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=15a7d3b2b4f486db1705e34bbb778d9723afc0d2

Author: Robert Shearman <rob at codeweavers.com>
Date:   Sat Mar 18 16:11:35 2006 +0000

wininet: Copy from the start of the cookie name, not the cookie data.

Copy from the start of the cookie name, not the cookie data when
parsing cookies with a NULL cookie name.

---

 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 231faca..15c257a 100644
--- a/dlls/wininet/cookie.c
+++ b/dlls/wininet/cookie.c
@@ -426,7 +426,7 @@ BOOL WINAPI InternetSetCookieW(LPCWSTR l
 	ourCookieData += 1;
 	ourCookieName = HeapAlloc(GetProcessHeap(), 0, 
                               (ourCookieNameSize + 1)*sizeof(WCHAR));
-	memcpy(ourCookieName, ourCookieData, ourCookieNameSize * sizeof(WCHAR));
+	memcpy(ourCookieName, lpCookieData, ourCookieNameSize * sizeof(WCHAR));
 	ourCookieName[ourCookieNameSize] = '\0';
 	TRACE("setting (hacked) cookie of %s, %s\n",
                debugstr_w(ourCookieName), debugstr_w(ourCookieData));




More information about the wine-cvs mailing list