Daniel Lehman : wininet: Accept Version in cookies.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Mar 13 08:44:24 CDT 2015


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

Author: Daniel Lehman <dlehman at esri.com>
Date:   Thu Mar 12 23:18:14 2015 -0700

wininet: Accept Version in cookies.

---

 dlls/wininet/cookie.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/wininet/cookie.c b/dlls/wininet/cookie.c
index fe0615a..af9dcdf 100644
--- a/dlls/wininet/cookie.c
+++ b/dlls/wininet/cookie.c
@@ -943,6 +943,7 @@ DWORD set_cookie(const WCHAR *domain, const WCHAR *path, const WCHAR *cookie_nam
         static const WCHAR szExpires[] = {'e','x','p','i','r','e','s','=',0};
         static const WCHAR szSecure[] = {'s','e','c','u','r','e',0};
         static const WCHAR szHttpOnly[] = {'h','t','t','p','o','n','l','y',0};
+        static const WCHAR szVersion[] = {'v','e','r','s','i','o','n','=',0};
 
         if (!(ptr = strchrW(ptr,';'))) break;
         *ptr++ = 0;
@@ -1023,6 +1024,11 @@ DWORD set_cookie(const WCHAR *domain, const WCHAR *path, const WCHAR *cookie_nam
             cookie_flags |= INTERNET_COOKIE_HTTPONLY;
             ptr += strlenW(szHttpOnly);
         }
+        else if (strncmpiW(ptr, szVersion, 8) == 0)
+        {
+            FIXME("version not handled (%s)\n",debugstr_w(ptr));
+            ptr += strlenW(szVersion);
+        }
         else if (*ptr)
         {
             FIXME("Unknown additional option %s\n",debugstr_w(ptr));




More information about the wine-cvs mailing list