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
5ae224de
Commit
5ae224de
authored
Apr 07, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added support for sending BSTR over IHTMLXMLHttpRequst::send.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
80893bcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
10 deletions
+25
-10
xmlhttprequest.c
dlls/mshtml/xmlhttprequest.c
+25
-10
No files found.
dlls/mshtml/xmlhttprequest.c
View file @
5ae224de
...
...
@@ -524,22 +524,37 @@ static HRESULT WINAPI HTMLXMLHttpRequest_open(IHTMLXMLHttpRequest *iface, BSTR b
static
HRESULT
WINAPI
HTMLXMLHttpRequest_send
(
IHTMLXMLHttpRequest
*
iface
,
VARIANT
varBody
)
{
HTMLXMLHttpRequest
*
This
=
impl_from_IHTMLXMLHttpRequest
(
iface
);
nsresult
nsres
;
nsIWritableVariant
*
nsbody
=
NULL
;
nsresult
nsres
=
NS_OK
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
varBody
));
switch
(
V_VT
(
&
varBody
))
{
case
VT_NULL
:
case
VT_EMPTY
:
case
VT_ERROR
:
break
;
default:
FIXME
(
"varBody(%s) unsupported
\n
"
,
debugstr_variant
(
&
varBody
));
return
E_FAIL
;
}
case
VT_NULL
:
case
VT_EMPTY
:
case
VT_ERROR
:
break
;
case
VT_BSTR
:
{
nsAString
nsstr
;
nsbody
=
create_nsvariant
();
if
(
!
nsbody
)
return
E_OUTOFMEMORY
;
nsres
=
nsIXMLHttpRequest_Send
(
This
->
nsxhr
,
NULL
);
nsAString_InitDepend
(
&
nsstr
,
V_BSTR
(
&
varBody
));
nsres
=
nsIWritableVariant_SetAsAString
(
nsbody
,
&
nsstr
);
nsAString_Finish
(
&
nsstr
);
break
;
}
default:
FIXME
(
"unsupported body type %s
\n
"
,
debugstr_variant
(
&
varBody
));
return
E_NOTIMPL
;
}
if
(
NS_SUCCEEDED
(
nsres
))
nsres
=
nsIXMLHttpRequest_Send
(
This
->
nsxhr
,
(
nsIVariant
*
)
nsbody
);
if
(
nsbody
)
nsIWritableVariant_Release
(
nsbody
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"nsIXMLHttpRequest_Send failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
...
...
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