Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2551f092
Commit
2551f092
authored
Jul 03, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Forward InternetGetCookieA to InternetGetCookieExA, not the other way around.
parent
cdf2c5f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
23 deletions
+18
-23
cookie.c
dlls/wininet/cookie.c
+18
-23
No files found.
dlls/wininet/cookie.c
View file @
2551f092
...
...
@@ -691,7 +691,7 @@ BOOL WINAPI InternetGetCookieW(LPCWSTR lpszUrl, LPCWSTR lpszCookieName,
/***********************************************************************
* InternetGetCookieA (WININET.@)
* InternetGetCookie
Ex
A (WININET.@)
*
* Retrieve cookie from the specified url
*
...
...
@@ -700,20 +700,20 @@ BOOL WINAPI InternetGetCookieW(LPCWSTR lpszUrl, LPCWSTR lpszCookieName,
* FALSE on failure
*
*/
BOOL
WINAPI
InternetGetCookieA
(
LPCSTR
lpszUrl
,
LPCSTR
lpszCookieName
,
LPSTR
lpCookieData
,
LPDWORD
lpdwSize
)
BOOL
WINAPI
InternetGetCookie
Ex
A
(
LPCSTR
lpszUrl
,
LPCSTR
lpszCookieName
,
LPSTR
lpCookieData
,
LPDWORD
lpdwSize
,
DWORD
flags
,
void
*
reserved
)
{
WCHAR
*
url
,
*
name
;
DWORD
len
,
size
;
BOOL
r
;
TRACE
(
"(%s %s %p %p(%u))
\n
"
,
debugstr_a
(
lpszUrl
),
debugstr_a
(
lpszCookieName
),
lpCookieData
,
lpdwSize
,
lpdwSize
?
*
lpdwSize
:
0
);
TRACE
(
"(%s %s %p %p(%u)
%x %p
)
\n
"
,
debugstr_a
(
lpszUrl
),
debugstr_a
(
lpszCookieName
),
lpCookieData
,
lpdwSize
,
lpdwSize
?
*
lpdwSize
:
0
,
flags
,
reserved
);
url
=
heap_strdupAtoW
(
lpszUrl
);
name
=
heap_strdupAtoW
(
lpszCookieName
);
r
=
InternetGetCookie
W
(
url
,
name
,
NULL
,
&
len
);
r
=
InternetGetCookie
ExW
(
url
,
name
,
NULL
,
&
len
,
flags
,
reserved
);
if
(
r
)
{
WCHAR
*
szCookieData
;
...
...
@@ -725,7 +725,7 @@ BOOL WINAPI InternetGetCookieA(LPCSTR lpszUrl, LPCSTR lpszCookieName,
}
else
{
r
=
InternetGetCookie
W
(
url
,
name
,
szCookieData
,
&
len
);
r
=
InternetGetCookie
ExW
(
url
,
name
,
szCookieData
,
&
len
,
flags
,
reserved
);
if
(
r
)
{
size
=
WideCharToMultiByte
(
CP_ACP
,
0
,
szCookieData
,
len
,
NULL
,
0
,
NULL
,
NULL
);
...
...
@@ -748,6 +748,17 @@ BOOL WINAPI InternetGetCookieA(LPCSTR lpszUrl, LPCSTR lpszCookieName,
return
r
;
}
/***********************************************************************
* InternetGetCookieA (WININET.@)
*
* See InternetGetCookieW.
*/
BOOL
WINAPI
InternetGetCookieA
(
const
char
*
url
,
const
char
*
name
,
char
*
data
,
DWORD
*
size
)
{
TRACE
(
"(%s, %s, %s, %p)
\n
"
,
debugstr_a
(
url
),
debugstr_a
(
name
),
debugstr_a
(
data
),
size
);
return
InternetGetCookieExA
(
url
,
name
,
data
,
size
,
0
,
NULL
);
}
/***********************************************************************
* IsDomainLegalCookieDomainW (WININET.@)
...
...
@@ -1078,22 +1089,6 @@ DWORD WINAPI InternetSetCookieExW( LPCWSTR lpszURL, LPCWSTR lpszCookieName, LPCW
}
/***********************************************************************
* InternetGetCookieExA (WININET.@)
*
* See InternetGetCookieExW.
*/
BOOL
WINAPI
InternetGetCookieExA
(
LPCSTR
pchURL
,
LPCSTR
pchCookieName
,
LPSTR
pchCookieData
,
LPDWORD
pcchCookieData
,
DWORD
dwFlags
,
LPVOID
lpReserved
)
{
TRACE
(
"(%s, %s, %s, %p, 0x%08x, %p)
\n
"
,
debugstr_a
(
pchURL
),
debugstr_a
(
pchCookieName
),
debugstr_a
(
pchCookieData
),
pcchCookieData
,
dwFlags
,
lpReserved
);
if
(
dwFlags
)
FIXME
(
"flags 0x%08x not supported
\n
"
,
dwFlags
);
return
InternetGetCookieA
(
pchURL
,
pchCookieName
,
pchCookieData
,
pcchCookieData
);
}
/***********************************************************************
* InternetGetCookieExW (WININET.@)
*
* Retrieve cookie for the specified URL.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment