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
614c66a4
Commit
614c66a4
authored
Dec 01, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLDocument2::get_cookie implementation.
parent
28677ea8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
2 deletions
+37
-2
htmldoc.c
dlls/mshtml/htmldoc.c
+37
-2
No files found.
dlls/mshtml/htmldoc.c
View file @
614c66a4
...
...
@@ -26,6 +26,7 @@
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "wininet.h"
#include "ole2.h"
#include "perhist.h"
#include "mshtmdid.h"
...
...
@@ -617,8 +618,42 @@ static HRESULT WINAPI HTMLDocument_put_cookie(IHTMLDocument2 *iface, BSTR v)
static
HRESULT
WINAPI
HTMLDocument_get_cookie
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
DWORD
size
;
BOOL
bret
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
size
=
0
;
bret
=
InternetGetCookieExW
(
This
->
window
->
url
,
NULL
,
NULL
,
&
size
,
0
,
NULL
);
if
(
!
bret
)
{
switch
(
GetLastError
())
{
case
ERROR_INSUFFICIENT_BUFFER
:
break
;
case
ERROR_NO_MORE_ITEMS
:
*
p
=
NULL
;
return
S_OK
;
default:
FIXME
(
"InternetGetCookieExW failed: %u
\n
"
,
GetLastError
());
return
HRESULT_FROM_WIN32
(
GetLastError
());
}
}
if
(
!
size
)
{
*
p
=
NULL
;
return
S_OK
;
}
*
p
=
SysAllocStringLen
(
NULL
,
size
-
1
);
if
(
!*
p
)
return
E_OUTOFMEMORY
;
bret
=
InternetGetCookieExW
(
This
->
window
->
url
,
NULL
,
*
p
,
&
size
,
0
,
NULL
);
if
(
!
bret
)
{
ERR
(
"InternetGetCookieExW failed: %u
\n
"
,
GetLastError
());
return
E_FAIL
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLDocument_put_expando
(
IHTMLDocument2
*
iface
,
VARIANT_BOOL
v
)
...
...
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