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
2a55b8d8
Commit
2a55b8d8
authored
Oct 01, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml: Fix implementation of ISAXContentHandler_characters.
parent
c7fc9265
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
saxreader.c
dlls/msxml3/saxreader.c
+18
-3
No files found.
dlls/msxml3/saxreader.c
View file @
2a55b8d8
...
...
@@ -197,6 +197,23 @@ static BSTR QName_from_xmlChar(const xmlChar *prefix, const xmlChar *name)
return
bstr
;
}
BSTR
bstr_from_xmlChar_wn
(
const
xmlChar
*
buf
,
int
len
)
{
DWORD
size
;
LPWSTR
str
;
BSTR
bstr
;
if
(
!
buf
)
return
NULL
;
size
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
(
LPCSTR
)
buf
,
len
,
NULL
,
0
);
str
=
(
LPWSTR
)
HeapAlloc
(
GetProcessHeap
(),
0
,
size
*
sizeof
(
WCHAR
));
if
(
!
str
)
return
NULL
;
MultiByteToWideChar
(
CP_UTF8
,
0
,
(
LPCSTR
)
buf
,
len
,
str
,
size
);
bstr
=
SysAllocStringLen
(
str
,
size
);
HeapFree
(
GetProcessHeap
(),
0
,
str
);
return
bstr
;
}
static
void
format_error_message_from_id
(
saxlocator
*
This
,
HRESULT
hr
)
{
xmlStopParser
(
This
->
pParserCtxt
);
...
...
@@ -1176,8 +1193,6 @@ static void libxmlCharacters(
chEnd
=
This
->
lastCur
+
len
;
while
(
*
chEnd
!=
'<'
)
chEnd
++
;
Chars
=
bstr_from_xmlChar
(
ch
);
lastCurCopy
=
This
->
lastCur
;
columnCopy
=
This
->
column
;
lineCopy
=
This
->
line
;
...
...
@@ -1195,7 +1210,7 @@ static void libxmlCharacters(
end
++
;
}
Chars
=
bstr_from_xmlChar
(
This
->
lastCur
);
Chars
=
bstr_from_xmlChar
_wn
(
This
->
lastCur
,
end
-
This
->
lastCur
+
2
);
if
(
*
end
==
'\r'
&&
*
(
end
+
1
)
==
'\n'
)
{
...
...
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