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
17d1c0fb
Commit
17d1c0fb
authored
Mar 05, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix BSTR retval handling for IVBSAXLocator.
parent
7ca1ac73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
20 deletions
+46
-20
saxreader.c
dlls/msxml3/saxreader.c
+36
-20
saxreader.c
dlls/msxml3/tests/saxreader.c
+10
-0
No files found.
dlls/msxml3/saxreader.c
View file @
17d1c0fb
...
...
@@ -2080,14 +2080,13 @@ static ULONG WINAPI ivbsaxlocator_AddRef(IVBSAXLocator* iface)
{
saxlocator
*
This
=
impl_from_IVBSAXLocator
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
I
nterlockedIncrement
(
&
This
->
ref
);
return
I
SAXLocator_AddRef
(
&
This
->
ISAXLocator_iface
);
}
static
ULONG
WINAPI
ivbsaxlocator_Release
(
IVBSAXLocator
*
iface
)
static
ULONG
WINAPI
ivbsaxlocator_Release
(
IVBSAXLocator
*
iface
)
{
saxlocator
*
This
=
impl_from_IVBSAXLocator
(
iface
);
return
ISAXLocator_Release
(
(
ISAXLocator
*
)
&
This
->
IVB
SAXLocator_iface
);
return
ISAXLocator_Release
(
&
This
->
I
SAXLocator_iface
);
}
/*** IDispatch methods ***/
...
...
@@ -2107,13 +2106,10 @@ static HRESULT WINAPI ivbsaxlocator_GetTypeInfo(
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
{
saxlocator
*
This
=
impl_from_IVBSAXLocator
(
iface
);
HRESULT
hr
;
TRACE
(
"(%p)->(%u %u %p)
\n
"
,
This
,
iTInfo
,
lcid
,
ppTInfo
);
hr
=
get_typeinfo
(
IVBSAXLocator_tid
,
ppTInfo
);
return
hr
;
return
get_typeinfo
(
IVBSAXLocator_tid
,
ppTInfo
);
}
static
HRESULT
WINAPI
ivbsaxlocator_GetIDsOfNames
(
...
...
@@ -2179,7 +2175,7 @@ static HRESULT WINAPI ivbsaxlocator_get_columnNumber(
int
*
pnColumn
)
{
saxlocator
*
This
=
impl_from_IVBSAXLocator
(
iface
);
return
ISAXLocator_getColumnNumber
(
(
ISAXLocator
*
)
&
This
->
IVB
SAXLocator_iface
,
pnColumn
);
return
ISAXLocator_getColumnNumber
(
&
This
->
I
SAXLocator_iface
,
pnColumn
);
}
static
HRESULT
WINAPI
ivbsaxlocator_get_lineNumber
(
...
...
@@ -2187,25 +2183,45 @@ static HRESULT WINAPI ivbsaxlocator_get_lineNumber(
int
*
pnLine
)
{
saxlocator
*
This
=
impl_from_IVBSAXLocator
(
iface
);
return
ISAXLocator_getLineNumber
(
(
ISAXLocator
*
)
&
This
->
IVB
SAXLocator_iface
,
pnLine
);
return
ISAXLocator_getLineNumber
(
&
This
->
I
SAXLocator_iface
,
pnLine
);
}
static
HRESULT
WINAPI
ivbsaxlocator_get_publicId
(
IVBSAXLocator
*
iface
,
BSTR
*
publicId
)
static
HRESULT
WINAPI
ivbsaxlocator_get_publicId
(
IVBSAXLocator
*
iface
,
BSTR
*
ret
)
{
saxlocator
*
This
=
impl_from_IVBSAXLocator
(
iface
);
return
ISAXLocator_getPublicId
((
ISAXLocator
*
)
&
This
->
IVBSAXLocator_iface
,
(
const
WCHAR
**
)
publicId
);
const
WCHAR
*
publicidW
;
HRESULT
hr
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
ret
);
if
(
!
ret
)
return
E_POINTER
;
*
ret
=
NULL
;
hr
=
ISAXLocator_getPublicId
(
&
This
->
ISAXLocator_iface
,
&
publicidW
);
if
(
FAILED
(
hr
))
return
hr
;
return
return_bstr
(
publicidW
,
ret
);
}
static
HRESULT
WINAPI
ivbsaxlocator_get_systemId
(
IVBSAXLocator
*
iface
,
BSTR
*
systemId
)
static
HRESULT
WINAPI
ivbsaxlocator_get_systemId
(
IVBSAXLocator
*
iface
,
BSTR
*
ret
)
{
saxlocator
*
This
=
impl_from_IVBSAXLocator
(
iface
);
return
ISAXLocator_getSystemId
((
ISAXLocator
*
)
&
This
->
IVBSAXLocator_iface
,
(
const
WCHAR
**
)
systemId
);
const
WCHAR
*
systemidW
;
HRESULT
hr
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
ret
);
if
(
!
ret
)
return
E_POINTER
;
*
ret
=
NULL
;
hr
=
ISAXLocator_getSystemId
(
&
This
->
ISAXLocator_iface
,
&
systemidW
);
if
(
FAILED
(
hr
))
return
hr
;
return
return_bstr
(
systemidW
,
ret
);
}
static
const
struct
IVBSAXLocatorVtbl
VBSAXLocatorVtbl
=
...
...
dlls/msxml3/tests/saxreader.c
View file @
17d1c0fb
...
...
@@ -1092,6 +1092,7 @@ static HRESULT WINAPI contentHandler_putDocumentLocator(
ISAXLocator
*
pLocator
)
{
struct
call_entry
call
;
IUnknown
*
unk
;
HRESULT
hr
;
locator
=
pLocator
;
...
...
@@ -1100,6 +1101,9 @@ static HRESULT WINAPI contentHandler_putDocumentLocator(
call
.
id
=
CH_PUTDOCUMENTLOCATOR
;
add_call
(
sequences
,
CONTENT_HANDLER_INDEX
,
&
call
);
hr
=
ISAXLocator_QueryInterface
(
pLocator
,
&
IID_IVBSAXLocator
,
(
void
**
)
&
unk
);
EXPECT_HR
(
hr
,
E_NOINTERFACE
);
if
(
msxml_version
>=
6
)
{
ISAXAttributes
*
attr
,
*
attr1
;
IMXAttributes
*
mxattr
;
...
...
@@ -1113,6 +1117,12 @@ static HRESULT WINAPI contentHandler_putDocumentLocator(
EXPECT_REF
(
pLocator
,
3
);
ok
(
attr
==
attr1
,
"got %p, %p
\n
"
,
attr
,
attr1
);
hr
=
ISAXAttributes_QueryInterface
(
attr
,
&
IID_IVBSAXAttributes
,
(
void
**
)
&
unk
);
EXPECT_HR
(
hr
,
E_NOINTERFACE
);
hr
=
ISAXLocator_QueryInterface
(
pLocator
,
&
IID_IVBSAXAttributes
,
(
void
**
)
&
unk
);
EXPECT_HR
(
hr
,
E_NOINTERFACE
);
hr
=
ISAXAttributes_QueryInterface
(
attr
,
&
IID_IMXAttributes
,
(
void
**
)
&
mxattr
);
EXPECT_HR
(
hr
,
E_NOINTERFACE
);
...
...
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