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
6818cc6f
Commit
6818cc6f
authored
Jul 31, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Added ISAXAttributes_getQName implementation.
parent
df5e40ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
3 deletions
+25
-3
saxreader.c
dlls/msxml3/saxreader.c
+25
-3
No files found.
dlls/msxml3/saxreader.c
View file @
6818cc6f
...
...
@@ -79,6 +79,7 @@ typedef struct _saxattributes
BSTR
*
szPrefix
;
BSTR
*
szURI
;
BSTR
*
szValue
;
BSTR
*
szQName
;
}
saxattributes
;
static
inline
saxreader
*
impl_from_IVBSAXXMLReader
(
IVBSAXXMLReader
*
iface
)
...
...
@@ -293,9 +294,14 @@ static HRESULT WINAPI isaxattributes_getQName(
int
*
pQNameLength
)
{
saxattributes
*
This
=
impl_from_ISAXAttributes
(
iface
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
nIndex
);
FIXME
(
"(%p)->(%d) stub
\n
"
,
This
,
nIndex
);
return
E_NOTIMPL
;
if
(
nIndex
>=
This
->
nb_attributes
)
return
E_INVALIDARG
;
*
pQNameLength
=
SysStringLen
(
This
->
szQName
[
nIndex
]);
*
pQName
=
This
->
szQName
[
nIndex
];
return
S_OK
;
}
static
HRESULT
WINAPI
isaxattributes_getName
(
...
...
@@ -471,9 +477,12 @@ static HRESULT SAXAttributes_create(saxattributes **attr,
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
BSTR
)
*
nb_attributes
);
attributes
->
szValue
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
BSTR
)
*
nb_attributes
);
attributes
->
szQName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
BSTR
)
*
nb_attributes
);
if
(
!
attributes
->
szLocalname
||
!
attributes
->
szPrefix
||
!
attributes
->
szURI
||
!
attributes
->
szValue
)
||
!
attributes
->
szURI
||
!
attributes
->
szValue
||
!
attributes
->
szQName
)
{
if
(
attributes
->
szLocalname
)
HeapFree
(
GetProcessHeap
(),
0
,
attributes
->
szLocalname
);
...
...
@@ -483,11 +492,15 @@ static HRESULT SAXAttributes_create(saxattributes **attr,
HeapFree
(
GetProcessHeap
(),
0
,
attributes
->
szURI
);
if
(
attributes
->
szValue
)
HeapFree
(
GetProcessHeap
(),
0
,
attributes
->
szValue
);
if
(
attributes
->
szQName
)
HeapFree
(
GetProcessHeap
(),
0
,
attributes
->
szQName
);
return
E_FAIL
;
}
for
(
index
=
0
;
index
<
nb_attributes
;
index
++
)
{
int
len1
,
len2
;
attributes
->
szLocalname
[
index
]
=
bstr_from_xmlChar
(
xmlAttributes
[
index
*
5
]);
attributes
->
szPrefix
[
index
]
=
...
...
@@ -497,6 +510,15 @@ static HRESULT SAXAttributes_create(saxattributes **attr,
attributes
->
szValue
[
index
]
=
bstr_from_xmlCharN
(
xmlAttributes
[
index
*
5
+
3
],
xmlAttributes
[
index
*
5
+
4
]
-
xmlAttributes
[
index
*
5
+
3
]);
len1
=
SysStringLen
(
attributes
->
szPrefix
[
index
]);
len2
=
SysStringLen
(
attributes
->
szLocalname
[
index
]);
attributes
->
szQName
[
index
]
=
SysAllocStringLen
(
NULL
,
len1
+
len2
);
memcpy
(
attributes
->
szQName
[
index
],
attributes
->
szPrefix
[
index
],
len1
*
sizeof
(
WCHAR
));
memcpy
(
attributes
->
szQName
[
index
]
+
len1
,
attributes
->
szLocalname
[
index
],
len2
*
sizeof
(
WCHAR
));
attributes
->
szQName
[
index
][
len1
+
len2
]
=
'\0'
;
}
*
attr
=
attributes
;
...
...
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