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
7a62e46f
Commit
7a62e46f
authored
Nov 01, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Support IDispatchEx for IXMLDOMParseError.
parent
5e327242
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
parseerror.c
dlls/msxml3/parseerror.c
+20
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+9
-0
No files found.
dlls/msxml3/parseerror.c
View file @
7a62e46f
...
...
@@ -44,6 +44,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml);
typedef
struct
{
DispatchEx
dispex
;
IXMLDOMParseError
IXMLDOMParseError_iface
;
LONG
ref
;
LONG
code
,
line
,
linepos
,
filepos
;
...
...
@@ -70,6 +71,10 @@ static HRESULT WINAPI parseError_QueryInterface(
{
*
ppvObject
=
iface
;
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppvObject
))
{
return
*
ppvObject
?
S_OK
:
E_NOINTERFACE
;
}
else
{
FIXME
(
"interface %s not implemented
\n
"
,
debugstr_guid
(
riid
));
...
...
@@ -103,6 +108,7 @@ static ULONG WINAPI parseError_Release(
SysFreeString
(
This
->
url
);
SysFreeString
(
This
->
reason
);
SysFreeString
(
This
->
srcText
);
release_dispex
(
&
This
->
dispex
);
heap_free
(
This
);
}
...
...
@@ -289,6 +295,18 @@ static const struct IXMLDOMParseErrorVtbl parseError_vtbl =
parseError_get_filepos
};
static
const
tid_t
parseError_iface_tids
[]
=
{
IXMLDOMParseError_tid
,
0
};
static
dispex_static_data_t
parseError_dispex
=
{
NULL
,
IXMLDOMParseError_tid
,
NULL
,
parseError_iface_tids
};
IXMLDOMParseError
*
create_parseError
(
LONG
code
,
BSTR
url
,
BSTR
reason
,
BSTR
srcText
,
LONG
line
,
LONG
linepos
,
LONG
filepos
)
{
...
...
@@ -309,5 +327,7 @@ IXMLDOMParseError *create_parseError( LONG code, BSTR url, BSTR reason, BSTR src
This
->
linepos
=
linepos
;
This
->
filepos
=
filepos
;
init_dispex
(
&
This
->
dispex
,
(
IUnknown
*
)
&
This
->
IXMLDOMParseError_iface
,
&
parseError_dispex
);
return
&
This
->
IXMLDOMParseError_iface
;
}
dlls/msxml3/tests/domdoc.c
View file @
7a62e46f
...
...
@@ -10627,6 +10627,7 @@ static void test_dispex(void)
{
const
DOMNodeType
*
type
=
dispex_types_test
;
IXMLDOMNodeList
*
node_list
;
IXMLDOMParseError
*
error
;
IXMLDOMDocument
*
doc
;
IUnknown
*
unk
;
HRESULT
hr
;
...
...
@@ -10663,6 +10664,14 @@ static void test_dispex(void)
IUnknown_Release
(
unk
);
IXMLDOMNodeList_Release
(
node_list
);
/* IXMLDOMParseError */
hr
=
IXMLDOMDocument_get_parseError
(
doc
,
&
error
);
EXPECT_HR
(
hr
,
S_OK
);
IXMLDOMParseError_QueryInterface
(
error
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
test_domobj_dispex
(
unk
);
IUnknown_Release
(
unk
);
IXMLDOMParseError_Release
(
error
);
IXMLDOMDocument_Release
(
doc
);
free_bstrs
();
}
...
...
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