Alex Henrie : winhttp: Make constant 'cookieW' static.

Alexandre Julliard julliard at winehq.org
Mon Nov 12 16:26:55 CST 2018


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

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Sun Nov 11 20:52:13 2018 -0700

winhttp: Make constant 'cookieW' static.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winhttp/cookie.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winhttp/cookie.c b/dlls/winhttp/cookie.c
index 0a7f7f0..88365f5 100644
--- a/dlls/winhttp/cookie.c
+++ b/dlls/winhttp/cookie.c
@@ -344,7 +344,7 @@ BOOL add_cookie_headers( request_t *request )
 
                 if (strstrW( request->path, cookie->path ) == request->path)
                 {
-                    const WCHAR cookieW[] = {'C','o','o','k','i','e',':',' '};
+                    static const WCHAR cookieW[] = {'C','o','o','k','i','e',':',' '};
                     int len, len_cookie = ARRAY_SIZE( cookieW ), len_name = strlenW( cookie->name );
                     WCHAR *header;
 




More information about the wine-cvs mailing list