Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9cb8629f
Commit
9cb8629f
authored
Feb 06, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Use the global HeapAlloc() helpers.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e6d315ba
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
saxreader.c
dlls/msxml3/saxreader.c
+3
-3
schema.c
dlls/msxml3/schema.c
+2
-2
No files found.
dlls/msxml3/saxreader.c
View file @
9cb8629f
...
@@ -561,7 +561,7 @@ static BOOL bstr_pool_insert(struct bstrpool *pool, BSTR pool_entry)
...
@@ -561,7 +561,7 @@ static BOOL bstr_pool_insert(struct bstrpool *pool, BSTR pool_entry)
{
{
if
(
!
pool
->
pool
)
if
(
!
pool
->
pool
)
{
{
pool
->
pool
=
HeapAlloc
(
GetProcessHeap
(),
0
,
16
*
sizeof
(
*
pool
->
pool
));
pool
->
pool
=
heap_alloc
(
16
*
sizeof
(
*
pool
->
pool
));
if
(
!
pool
->
pool
)
if
(
!
pool
->
pool
)
return
FALSE
;
return
FALSE
;
...
@@ -570,7 +570,7 @@ static BOOL bstr_pool_insert(struct bstrpool *pool, BSTR pool_entry)
...
@@ -570,7 +570,7 @@ static BOOL bstr_pool_insert(struct bstrpool *pool, BSTR pool_entry)
}
}
else
if
(
pool
->
index
==
pool
->
len
)
else
if
(
pool
->
index
==
pool
->
len
)
{
{
BSTR
*
realloc
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
pool
->
pool
,
pool
->
len
*
2
*
sizeof
(
*
realloc
));
BSTR
*
realloc
=
heap_realloc
(
pool
->
pool
,
pool
->
len
*
2
*
sizeof
(
*
realloc
));
if
(
!
realloc
)
if
(
!
realloc
)
return
FALSE
;
return
FALSE
;
...
@@ -590,7 +590,7 @@ static void free_bstr_pool(struct bstrpool *pool)
...
@@ -590,7 +590,7 @@ static void free_bstr_pool(struct bstrpool *pool)
for
(
i
=
0
;
i
<
pool
->
index
;
i
++
)
for
(
i
=
0
;
i
<
pool
->
index
;
i
++
)
SysFreeString
(
pool
->
pool
[
i
]);
SysFreeString
(
pool
->
pool
[
i
]);
HeapFree
(
GetProcessHeap
(),
0
,
pool
->
pool
);
heap_free
(
pool
->
pool
);
pool
->
pool
=
NULL
;
pool
->
pool
=
NULL
;
pool
->
index
=
pool
->
len
=
0
;
pool
->
index
=
pool
->
len
=
0
;
...
...
dlls/msxml3/schema.c
View file @
9cb8629f
...
@@ -749,7 +749,7 @@ void schemasInit(void)
...
@@ -749,7 +749,7 @@ void schemasInit(void)
/* Resource is loaded as raw data,
/* Resource is loaded as raw data,
* need a null-terminated string */
* need a null-terminated string */
while
(
buf
[
datatypes_len
-
1
]
!=
'>'
)
datatypes_len
--
;
while
(
buf
[
datatypes_len
-
1
]
!=
'>'
)
datatypes_len
--
;
datatypes_src
=
HeapAlloc
(
GetProcessHeap
(),
0
,
datatypes_len
+
1
);
datatypes_src
=
heap_alloc
(
datatypes_len
+
1
);
memcpy
(
datatypes_src
,
buf
,
datatypes_len
);
memcpy
(
datatypes_src
,
buf
,
datatypes_len
);
datatypes_src
[
datatypes_len
]
=
0
;
datatypes_src
[
datatypes_len
]
=
0
;
...
@@ -763,7 +763,7 @@ void schemasInit(void)
...
@@ -763,7 +763,7 @@ void schemasInit(void)
void
schemasCleanup
(
void
)
void
schemasCleanup
(
void
)
{
{
xmlSchemaFree
(
datatypes_schema
);
xmlSchemaFree
(
datatypes_schema
);
HeapFree
(
GetProcessHeap
(),
0
,
datatypes_src
);
heap_free
(
datatypes_src
);
xmlSetExternalEntityLoader
(
_external_entity_loader
);
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