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
c381abd8
Commit
c381abd8
authored
Dec 11, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Schema cache COM cleanup.
parent
91c4b4c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
schema.c
dlls/msxml3/schema.c
+9
-8
No files found.
dlls/msxml3/schema.c
View file @
c381abd8
...
@@ -87,12 +87,13 @@ typedef enum _SCHEMA_TYPE {
...
@@ -87,12 +87,13 @@ typedef enum _SCHEMA_TYPE {
SCHEMA_TYPE_XSD
SCHEMA_TYPE_XSD
}
SCHEMA_TYPE
;
}
SCHEMA_TYPE
;
typedef
struct
_schema_cache
typedef
struct
{
{
const
struct
IXMLDOMSchemaCollection2Vtbl
*
lpVtbl
;
IXMLDOMSchemaCollection2
IXMLDOMSchemaCollection2_iface
;
LONG
ref
;
MSXML_VERSION
version
;
MSXML_VERSION
version
;
xmlHashTablePtr
cache
;
xmlHashTablePtr
cache
;
LONG
ref
;
VARIANT_BOOL
validateOnLoad
;
VARIANT_BOOL
validateOnLoad
;
}
schema_cache
;
}
schema_cache
;
...
@@ -780,7 +781,7 @@ static LONG cache_entry_release(cache_entry* entry)
...
@@ -780,7 +781,7 @@ static LONG cache_entry_release(cache_entry* entry)
static
inline
schema_cache
*
impl_from_IXMLDOMSchemaCollection2
(
IXMLDOMSchemaCollection2
*
iface
)
static
inline
schema_cache
*
impl_from_IXMLDOMSchemaCollection2
(
IXMLDOMSchemaCollection2
*
iface
)
{
{
return
(
schema_cache
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
schema_cache
,
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
schema_cache
,
IXMLDOMSchemaCollection2_iface
);
}
}
static
inline
SCHEMA_TYPE
schema_type_from_xmlDocPtr
(
xmlDocPtr
schema
)
static
inline
SCHEMA_TYPE
schema_type_from_xmlDocPtr
(
xmlDocPtr
schema
)
...
@@ -1065,7 +1066,7 @@ static HRESULT WINAPI schema_cache_Invoke(IXMLDOMSchemaCollection2* iface,
...
@@ -1065,7 +1066,7 @@ static HRESULT WINAPI schema_cache_Invoke(IXMLDOMSchemaCollection2* iface,
hr
=
get_typeinfo
(
IXMLDOMSchemaCollection_tid
,
&
typeinfo
);
hr
=
get_typeinfo
(
IXMLDOMSchemaCollection_tid
,
&
typeinfo
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
{
{
hr
=
ITypeInfo_Invoke
(
typeinfo
,
&
(
This
->
lpVtbl
)
,
dispIdMember
,
wFlags
,
pDispParams
,
hr
=
ITypeInfo_Invoke
(
typeinfo
,
&
This
->
IXMLDOMSchemaCollection2_iface
.
lpVtbl
,
dispIdMember
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
pVarResult
,
pExcepInfo
,
puArgErr
);
ITypeInfo_Release
(
typeinfo
);
ITypeInfo_Release
(
typeinfo
);
}
}
...
@@ -1327,7 +1328,7 @@ static HRESULT WINAPI schema_cache_getDeclaration(IXMLDOMSchemaCollection2* ifac
...
@@ -1327,7 +1328,7 @@ static HRESULT WINAPI schema_cache_getDeclaration(IXMLDOMSchemaCollection2* ifac
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
const
struct
IXMLDOMSchemaCollection2Vtbl
schema_cache_v
tbl
=
static
const
struct
IXMLDOMSchemaCollection2Vtbl
XMLDOMSchemaCollection2V
tbl
=
{
{
schema_cache_QueryInterface
,
schema_cache_QueryInterface
,
schema_cache_AddRef
,
schema_cache_AddRef
,
...
@@ -1444,13 +1445,13 @@ HRESULT SchemaCache_create(MSXML_VERSION version, IUnknown* outer, void** obj)
...
@@ -1444,13 +1445,13 @@ HRESULT SchemaCache_create(MSXML_VERSION version, IUnknown* outer, void** obj)
TRACE
(
"(%d %p %p)
\n
"
,
version
,
outer
,
obj
);
TRACE
(
"(%d %p %p)
\n
"
,
version
,
outer
,
obj
);
This
->
lpVtbl
=
&
schema_cache_v
tbl
;
This
->
IXMLDOMSchemaCollection2_iface
.
lpVtbl
=
&
XMLDOMSchemaCollection2V
tbl
;
This
->
cache
=
xmlHashCreate
(
DEFAULT_HASHTABLE_SIZE
);
This
->
cache
=
xmlHashCreate
(
DEFAULT_HASHTABLE_SIZE
);
This
->
ref
=
1
;
This
->
ref
=
1
;
This
->
version
=
version
;
This
->
version
=
version
;
This
->
validateOnLoad
=
VARIANT_TRUE
;
This
->
validateOnLoad
=
VARIANT_TRUE
;
*
obj
=
&
This
->
lpVtbl
;
*
obj
=
&
This
->
IXMLDOMSchemaCollection2_iface
;
return
S_OK
;
return
S_OK
;
}
}
...
...
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