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
bf263947
Commit
bf263947
authored
Jul 17, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Improve QName_from_xmlChar implementation.
parent
3bf94bed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
saxreader.c
dlls/msxml3/saxreader.c
+5
-9
No files found.
dlls/msxml3/saxreader.c
View file @
bf263947
...
...
@@ -180,7 +180,6 @@ static BSTR bstr_from_xmlCharN(const xmlChar *buf, int len)
static
BSTR
QName_from_xmlChar
(
const
xmlChar
*
prefix
,
const
xmlChar
*
name
)
{
DWORD
dLen
,
dLast
;
LPWSTR
str
;
BSTR
bstr
;
if
(
!
name
)
return
NULL
;
...
...
@@ -190,16 +189,13 @@ static BSTR QName_from_xmlChar(const xmlChar *prefix, const xmlChar *name)
dLen
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
(
LPCSTR
)
prefix
,
-
1
,
NULL
,
0
)
+
MultiByteToWideChar
(
CP_UTF8
,
0
,
(
LPCSTR
)
name
,
-
1
,
NULL
,
0
);
str
=
heap_alloc
(
dLen
*
sizeof
(
WCHAR
)
);
if
(
!
str
)
bstr
=
SysAllocStringLen
(
NULL
,
dLen
-
1
);
if
(
!
b
str
)
return
NULL
;
dLast
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
(
LPCSTR
)
prefix
,
-
1
,
str
,
dLen
);
str
[
dLast
-
1
]
=
':'
;
MultiByteToWideChar
(
CP_UTF8
,
0
,
(
LPCSTR
)
name
,
-
1
,
&
str
[
dLast
],
dLen
-
dLast
);
bstr
=
SysAllocString
(
str
);
heap_free
(
str
);
dLast
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
(
LPCSTR
)
prefix
,
-
1
,
bstr
,
dLen
);
bstr
[
dLast
-
1
]
=
':'
;
MultiByteToWideChar
(
CP_UTF8
,
0
,
(
LPCSTR
)
name
,
-
1
,
&
bstr
[
dLast
],
dLen
-
dLast
);
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