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
2bff764d
Commit
2bff764d
authored
Jul 14, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Implement put/get for DTD handler callback interface.
parent
13d95525
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
12 deletions
+49
-12
saxreader.c
dlls/msxml3/saxreader.c
+49
-12
No files found.
dlls/msxml3/saxreader.c
View file @
2bff764d
...
...
@@ -177,6 +177,8 @@ typedef struct
IVBSAXLexicalHandler
*
vblexicalHandler
;
ISAXDeclHandler
*
declHandler
;
IVBSAXDeclHandler
*
vbdeclHandler
;
ISAXDTDHandler
*
dtdHandler
;
IVBSAXDTDHandler
*
vbdtdHandler
;
xmlSAXHandler
sax
;
BOOL
isParsing
;
struct
bstrpool
pool
;
...
...
@@ -2358,22 +2360,49 @@ static HRESULT internal_putContentHandler(
return
S_OK
;
}
static
HRESULT
internal_getDTDHandler
(
saxreader
*
This
,
void
*
pDTDHandler
,
BOOL
vbInterface
)
static
HRESULT
internal_getDTDHandler
(
saxreader
*
This
,
void
*
dtdHandler
,
BOOL
vbInterface
)
{
FIXME
(
"(%p)->(%p) stub
\n
"
,
This
,
pDTDHandler
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
dtdHandler
);
if
(
!
dtdHandler
)
return
E_POINTER
;
if
((
vbInterface
&&
This
->
vbdtdHandler
)
||
(
!
vbInterface
&&
This
->
dtdHandler
))
{
if
(
vbInterface
)
IVBSAXContentHandler_AddRef
(
This
->
vbdtdHandler
);
else
ISAXContentHandler_AddRef
(
This
->
dtdHandler
);
}
if
(
vbInterface
)
*
(
IVBSAXDTDHandler
**
)
dtdHandler
=
This
->
vbdtdHandler
;
else
*
(
ISAXDTDHandler
**
)
dtdHandler
=
This
->
dtdHandler
;
return
S_OK
;
}
static
HRESULT
internal_putDTDHandler
(
saxreader
*
This
,
void
*
pDTDHandler
,
BOOL
vbInterface
)
static
HRESULT
internal_putDTDHandler
(
saxreader
*
This
,
void
*
dtdHandler
,
BOOL
vbInterface
)
{
FIXME
(
"(%p)->(%p) stub
\n
"
,
This
,
pDTDHandler
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
dtdHandler
);
if
(
dtdHandler
)
{
if
(
vbInterface
)
IVBSAXDTDHandler_AddRef
((
IVBSAXDTDHandler
*
)
dtdHandler
);
else
ISAXDTDHandler_AddRef
((
ISAXDTDHandler
*
)
dtdHandler
);
}
if
((
vbInterface
&&
This
->
vbdtdHandler
)
||
(
!
vbInterface
&&
This
->
dtdHandler
))
{
if
(
vbInterface
)
IVBSAXDTDHandler_Release
(
This
->
vbdtdHandler
);
else
ISAXDTDHandler_Release
(
This
->
dtdHandler
);
}
if
(
vbInterface
)
This
->
vbdtdHandler
=
dtdHandler
;
else
This
->
dtdHandler
=
dtdHandler
;
return
S_OK
;
}
static
HRESULT
internal_getErrorHandler
(
...
...
@@ -2809,6 +2838,12 @@ static ULONG WINAPI saxxmlreader_Release(
if
(
This
->
vbdeclHandler
)
IVBSAXDeclHandler_Release
(
This
->
vbdeclHandler
);
if
(
This
->
dtdHandler
)
ISAXDTDHandler_Release
(
This
->
dtdHandler
);
if
(
This
->
vbdtdHandler
)
IVBSAXDTDHandler_Release
(
This
->
vbdtdHandler
);
free_bstr_pool
(
&
This
->
pool
);
release_dispex
(
&
This
->
dispex
);
...
...
@@ -3306,6 +3341,8 @@ HRESULT SAXXMLReader_create(MSXML_VERSION version, IUnknown *outer, LPVOID *ppOb
reader
->
vblexicalHandler
=
NULL
;
reader
->
declHandler
=
NULL
;
reader
->
vbdeclHandler
=
NULL
;
reader
->
dtdHandler
=
NULL
;
reader
->
vbdtdHandler
=
NULL
;
reader
->
isParsing
=
FALSE
;
reader
->
pool
.
pool
=
NULL
;
reader
->
pool
.
index
=
0
;
...
...
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