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
945dccb7
Commit
945dccb7
authored
Nov 04, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Implement get_line() and get_linepos().
parent
cfce8ab4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
8 deletions
+41
-8
parseerror.c
dlls/msxml3/parseerror.c
+15
-8
domdoc.c
dlls/msxml3/tests/domdoc.c
+26
-0
No files found.
dlls/msxml3/parseerror.c
View file @
945dccb7
...
...
@@ -135,13 +135,10 @@ static HRESULT WINAPI parseError_GetTypeInfo(
ITypeInfo
**
ppTInfo
)
{
parse_error_t
*
This
=
impl_from_IXMLDOMParseError
(
iface
);
HRESULT
hr
;
TRACE
(
"(%p)->(%u %u %p)
\n
"
,
This
,
iTInfo
,
lcid
,
ppTInfo
);
hr
=
get_typeinfo
(
IXMLDOMParseError_tid
,
ppTInfo
);
return
hr
;
return
get_typeinfo
(
IXMLDOMParseError_tid
,
ppTInfo
);
}
static
HRESULT
WINAPI
parseError_GetIDsOfNames
(
...
...
@@ -255,8 +252,13 @@ static HRESULT WINAPI parseError_get_line(
LONG
*
line
)
{
parse_error_t
*
This
=
impl_from_IXMLDOMParseError
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
line
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p): stub
\n
"
,
This
,
line
);
if
(
!
line
)
return
E_INVALIDARG
;
*
line
=
This
->
line
;
return
S_OK
;
}
static
HRESULT
WINAPI
parseError_get_linepos
(
...
...
@@ -264,8 +266,13 @@ static HRESULT WINAPI parseError_get_linepos(
LONG
*
linepos
)
{
parse_error_t
*
This
=
impl_from_IXMLDOMParseError
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
linepos
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
linepos
);
if
(
!
linepos
)
return
E_INVALIDARG
;
*
linepos
=
This
->
linepos
;
return
S_OK
;
}
static
HRESULT
WINAPI
parseError_get_filepos
(
...
...
dlls/msxml3/tests/domdoc.c
View file @
945dccb7
...
...
@@ -10752,6 +10752,31 @@ static void test_dispex(void)
free_bstrs
();
}
static
void
test_parseerror
(
void
)
{
IXMLDOMParseError
*
error
;
IXMLDOMDocument
*
doc
;
HRESULT
hr
;
doc
=
create_document
(
&
IID_IXMLDOMDocument
);
hr
=
IXMLDOMDocument_get_parseError
(
doc
,
&
error
);
EXPECT_HR
(
hr
,
S_OK
);
hr
=
IXMLDOMParseError_get_line
(
error
,
NULL
);
EXPECT_HR
(
hr
,
E_INVALIDARG
);
hr
=
IXMLDOMParseError_get_srcText
(
error
,
NULL
);
todo_wine
EXPECT_HR
(
hr
,
E_INVALIDARG
);
hr
=
IXMLDOMParseError_get_linepos
(
error
,
NULL
);
EXPECT_HR
(
hr
,
E_INVALIDARG
);
IXMLDOMParseError_Release
(
error
);
IXMLDOMDocument_Release
(
doc
);
}
START_TEST
(
domdoc
)
{
IXMLDOMDocument
*
doc
;
...
...
@@ -10824,6 +10849,7 @@ START_TEST(domdoc)
test_selection
();
test_load
();
test_dispex
();
test_parseerror
();
test_xsltemplate
();
...
...
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