Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
26d42b9d
Commit
26d42b9d
authored
Sep 09, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Added ISupportErrorInfo support for schema cache.
parent
20ce6bd1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
schema.c
dlls/msxml3/schema.c
+10
-0
domdoc.c
dlls/msxml3/tests/domdoc.c
+15
-0
No files found.
dlls/msxml3/schema.c
View file @
26d42b9d
...
...
@@ -116,6 +116,12 @@ typedef struct
LONG
ref
;
}
cache_entry
;
static
const
tid_t
schema_cache_se_tids
[]
=
{
IXMLDOMSchemaCollection_tid
,
IXMLDOMSchemaCollection2_tid
,
NULL_tid
};
/* datatypes lookup stuff
* generated with help from gperf */
#define DT_MIN_STR_LEN 2
...
...
@@ -1105,6 +1111,10 @@ static HRESULT WINAPI schema_cache_QueryInterface(IXMLDOMSchemaCollection2* ifac
{
return
*
ppvObject
?
S_OK
:
E_NOINTERFACE
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_ISupportErrorInfo
))
{
return
node_create_supporterrorinfo
(
schema_cache_se_tids
,
ppvObject
);
}
else
{
FIXME
(
"interface %s not implemented
\n
"
,
debugstr_guid
(
riid
));
...
...
dlls/msxml3/tests/domdoc.c
View file @
26d42b9d
...
...
@@ -10712,6 +10712,7 @@ static void test_supporterrorinfo(void)
&
IID_IXMLDOMDocument2
,
&
IID_IXMLDOMDocument3
};
const
supporterror_t
*
ptr
=
supporterror_test
;
ISupportErrorInfo
*
errorinfo
,
*
info2
;
IXMLDOMSchemaCollection
*
schemacache
;
IXMLDOMNamedNodeMap
*
map
,
*
map2
;
IXMLDOMDocument
*
doc
;
IXMLDOMElement
*
elem
;
...
...
@@ -10838,6 +10839,20 @@ static void test_supporterrorinfo(void)
IXMLDOMElement_Release
(
elem
);
IXMLDOMDocument_Release
(
doc
);
/* IXMLDOMSchemaCollection */
hr
=
CoCreateInstance
(
&
CLSID_XMLSchemaCache
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IXMLDOMSchemaCollection
,
(
void
**
)
&
schemacache
);
ok
(
hr
==
S_OK
,
"failed to create schema collection, 0x%08x
\n
"
,
hr
);
hr
=
IXMLDOMSchemaCollection_QueryInterface
(
schemacache
,
&
IID_ISupportErrorInfo
,
(
void
**
)
&
errorinfo
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
ISupportErrorInfo_InterfaceSupportsErrorInfo
(
errorinfo
,
&
IID_IXMLDOMSchemaCollection
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ISupportErrorInfo_Release
(
errorinfo
);
IXMLDOMSchemaCollection_Release
(
schemacache
);
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