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
42f742e1
Commit
42f742e1
authored
Jan 16, 2018
by
Thomas Faber
Committed by
Alexandre Julliard
Jan 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Handle RtlReAllocateHeap failure in com_class_add_progid (Coverity).
Signed-off-by:
Thomas Faber
<
thomas.faber@reactos.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cf629f7e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
actctx.c
dlls/ntdll/actctx.c
+4
-1
No files found.
dlls/ntdll/actctx.c
View file @
42f742e1
...
...
@@ -1453,8 +1453,11 @@ static BOOL com_class_add_progid(const xmlstr_t *progid, struct entity *entity)
if
(
progids
->
allocated
==
progids
->
num
)
{
WCHAR
**
new_progids
=
RtlReAllocateHeap
(
GetProcessHeap
(),
0
,
progids
->
progids
,
2
*
progids
->
allocated
*
sizeof
(
WCHAR
*
));
if
(
!
new_progids
)
return
FALSE
;
progids
->
allocated
*=
2
;
progids
->
progids
=
RtlReAllocateHeap
(
GetProcessHeap
(),
0
,
progids
->
progids
,
progids
->
allocated
*
sizeof
(
WCHAR
*
))
;
progids
->
progids
=
new_progids
;
}
if
(
!
(
progids
->
progids
[
progids
->
num
]
=
xmlstrdupW
(
progid
)))
return
FALSE
;
...
...
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