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
c9d389c3
Commit
c9d389c3
authored
Sep 14, 2012
by
Thomas Faber
Committed by
Alexandre Julliard
Sep 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Do not directly write to resource section.
parent
6881ca77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
schema.c
dlls/msxml3/schema.c
+7
-7
No files found.
dlls/msxml3/schema.c
View file @
c9d389c3
...
...
@@ -68,7 +68,7 @@ static const xmlChar XDR_schema[] = "Schema";
static
const
xmlChar
XDR_nsURI
[]
=
"urn:schemas-microsoft-com:xml-data"
;
static
const
xmlChar
DT_nsURI
[]
=
"urn:schemas-microsoft-com:datatypes"
;
static
xmlChar
const
*
datatypes_src
;
static
xmlChar
*
datatypes_src
;
static
int
datatypes_len
;
static
HGLOBAL
datatypes_handle
;
static
HRSRC
datatypes_rsrc
;
...
...
@@ -728,7 +728,6 @@ static xmlParserInputPtr external_entity_loader(const char *URL, const char *ID,
void
schemasInit
(
void
)
{
int
len
;
xmlChar
*
buf
;
if
(
!
(
datatypes_rsrc
=
FindResourceA
(
MSXML_hInstance
,
"DATATYPES"
,
"XML"
)))
{
...
...
@@ -742,14 +741,14 @@ void schemasInit(void)
return
;
}
buf
=
LockResource
(
datatypes_handle
);
len
=
SizeofResource
(
MSXML_hInstance
,
datatypes_rsrc
)
-
1
;
datatypes_len
=
SizeofResource
(
MSXML_hInstance
,
datatypes_rsrc
)
;
/* Resource is loaded as raw data,
* need a null-terminated string */
while
(
buf
[
len
]
!=
'>'
)
buf
[
len
--
]
=
0
;
datatypes_src
=
buf
;
datatypes_
len
=
len
+
1
;
while
(
buf
[
datatypes_len
-
1
]
!=
'>'
)
datatypes_len
--
;
datatypes_src
=
HeapAlloc
(
GetProcessHeap
(),
0
,
datatypes_len
+
1
)
;
memcpy
(
datatypes_src
,
buf
,
datatypes_len
)
;
datatypes_
src
[
datatypes_len
]
=
0
;
if
(
xmlGetExternalEntityLoader
()
!=
external_entity_loader
)
{
...
...
@@ -761,6 +760,7 @@ void schemasInit(void)
void
schemasCleanup
(
void
)
{
xmlSchemaFree
(
datatypes_schema
);
HeapFree
(
GetProcessHeap
(),
0
,
datatypes_src
);
xmlSetExternalEntityLoader
(
_external_entity_loader
);
}
...
...
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