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
4ea5d00e
Commit
4ea5d00e
authored
Jul 22, 2015
by
Zhenbo Li
Committed by
Alexandre Julliard
Jul 22, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Add IHTMLXMLHttpRequest::responseText() method implementation.
parent
41c45f36
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
xmlhttprequest.c
dlls/mshtml/tests/xmlhttprequest.c
+3
-3
xmlhttprequest.c
dlls/mshtml/xmlhttprequest.c
+11
-2
No files found.
dlls/mshtml/tests/xmlhttprequest.c
View file @
4ea5d00e
...
...
@@ -647,9 +647,9 @@ static void test_async_xhr(IHTMLDocument2 *doc, const char *xml_url)
text
=
NULL
;
hres
=
IHTMLXMLHttpRequest_get_responseText
(
xhr
,
&
text
);
todo_wine
ok
(
hres
==
S_OK
,
"get_responseText failed: %08x
\n
"
,
hres
);
todo_wine
ok
(
text
!=
NULL
,
"test == NULL
\n
"
);
todo_wine
ok
(
!
strcmp_wa
(
text
,
EXPECT_RESPONSE_TEXT
),
"expect %s, got %s
\n
"
,
ok
(
hres
==
S_OK
,
"get_responseText failed: %08x
\n
"
,
hres
);
ok
(
text
!=
NULL
,
"test == NULL
\n
"
);
ok
(
!
strcmp_wa
(
text
,
EXPECT_RESPONSE_TEXT
),
"expect %s, got %s
\n
"
,
EXPECT_RESPONSE_TEXT
,
wine_dbgstr_w
(
text
));
SysFreeString
(
text
);
...
...
dlls/mshtml/xmlhttprequest.c
View file @
4ea5d00e
...
...
@@ -289,8 +289,17 @@ static HRESULT WINAPI HTMLXMLHttpRequest_get_responseBody(IHTMLXMLHttpRequest *i
static
HRESULT
WINAPI
HTMLXMLHttpRequest_get_responseText
(
IHTMLXMLHttpRequest
*
iface
,
BSTR
*
p
)
{
HTMLXMLHttpRequest
*
This
=
impl_from_IHTMLXMLHttpRequest
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsAString
nsstr
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
!
p
)
return
E_POINTER
;
nsAString_Init
(
&
nsstr
,
NULL
);
nsres
=
nsIXMLHttpRequest_GetResponseText
(
This
->
nsxhr
,
&
nsstr
);
return
return_nsstr
(
nsres
,
&
nsstr
,
p
);
}
static
HRESULT
WINAPI
HTMLXMLHttpRequest_get_responseXML
(
IHTMLXMLHttpRequest
*
iface
,
IDispatch
**
p
)
...
...
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