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
60ca0a7b
Commit
60ca0a7b
authored
Jul 17, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Added ISAXLocator_getPublicId.
parent
e47cbd1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
saxreader.c
dlls/msxml3/saxreader.c
+19
-2
No files found.
dlls/msxml3/saxreader.c
View file @
60ca0a7b
...
...
@@ -62,6 +62,7 @@ typedef struct _saxlocator
saxreader
*
saxreader
;
HRESULT
ret
;
xmlParserCtxtPtr
pParserCtxt
;
WCHAR
*
publicId
;
int
lastLine
;
int
lastColumn
;
}
saxlocator
;
...
...
@@ -307,6 +308,9 @@ static ULONG WINAPI isaxlocator_Release(
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
ref
==
0
)
{
if
(
This
->
publicId
)
SysFreeString
(
This
->
publicId
);
ISAXXMLReader_Release
((
ISAXXMLReader
*
)
&
This
->
saxreader
->
lpSAXXMLReaderVtbl
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -339,10 +343,22 @@ static HRESULT WINAPI isaxlocator_getPublicId(
ISAXLocator
*
iface
,
const
WCHAR
**
ppwchPublicId
)
{
BSTR
publicId
;
saxlocator
*
This
=
impl_from_ISAXLocator
(
iface
);
FIXME
(
"(%p)->(%p) stub
\n
"
,
This
,
ppwchPublicId
);
return
E_NOTIMPL
;
if
(
This
->
publicId
)
SysFreeString
(
This
->
publicId
);
publicId
=
bstr_from_xmlChar
(
xmlSAX2GetPublicId
(
This
->
pParserCtxt
));
if
(
SysStringLen
(
publicId
))
This
->
publicId
=
(
WCHAR
*
)
&
publicId
;
else
{
SysFreeString
(
publicId
);
This
->
publicId
=
NULL
;
}
*
ppwchPublicId
=
This
->
publicId
;
return
S_OK
;
}
static
HRESULT
WINAPI
isaxlocator_getSystemId
(
...
...
@@ -381,6 +397,7 @@ static HRESULT SAXLocator_create(saxreader *reader, saxlocator **ppsaxlocator)
ISAXXMLReader_AddRef
((
ISAXXMLReader
*
)
&
reader
->
lpSAXXMLReaderVtbl
);
locator
->
pParserCtxt
=
NULL
;
locator
->
publicId
=
NULL
;
locator
->
lastLine
=
0
;
locator
->
lastColumn
=
0
;
locator
->
ret
=
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