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
2329d2af
Commit
2329d2af
authored
Oct 29, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Build qualified name using libxml2 helper.
parent
8f9804ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
saxreader.c
dlls/msxml3/saxreader.c
+5
-11
No files found.
dlls/msxml3/saxreader.c
View file @
2329d2af
...
...
@@ -182,23 +182,17 @@ static BSTR bstr_from_xmlCharN(const xmlChar *buf, int len)
static
BSTR
QName_from_xmlChar
(
const
xmlChar
*
prefix
,
const
xmlChar
*
name
)
{
DWORD
dLen
,
dLast
;
xmlChar
*
qname
;
BSTR
bstr
;
if
(
!
name
)
return
NULL
;
if
(
!
prefix
||
*
prefix
==
'\0'
)
if
(
!
prefix
||
!*
prefix
)
return
bstr_from_xmlChar
(
name
);
dLen
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
(
LPCSTR
)
prefix
,
-
1
,
NULL
,
0
)
+
MultiByteToWideChar
(
CP_UTF8
,
0
,
(
LPCSTR
)
name
,
-
1
,
NULL
,
0
);
bstr
=
SysAllocStringLen
(
NULL
,
dLen
-
1
);
if
(
!
bstr
)
return
NULL
;
dLast
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
(
LPCSTR
)
prefix
,
-
1
,
bstr
,
dLen
);
bstr
[
dLast
-
1
]
=
':'
;
MultiByteToWideChar
(
CP_UTF8
,
0
,
(
LPCSTR
)
name
,
-
1
,
&
bstr
[
dLast
],
dLen
-
dLast
);
qname
=
xmlBuildQName
(
name
,
prefix
,
NULL
,
0
);
bstr
=
bstr_from_xmlChar
(
qname
);
xmlFree
(
qname
);
return
bstr
;
}
...
...
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