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
2c7ac136
Commit
2c7ac136
authored
Jan 31, 2009
by
Marcus Meissner
Committed by
Alexandre Julliard
Feb 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services: Handle realloc failures better (Coverity).
parent
45a12690
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
services.c
programs/services/services.c
+4
-2
No files found.
programs/services/services.c
View file @
2c7ac136
...
@@ -242,10 +242,12 @@ static void scmdatabase_autostart_services(struct scmdatabase *db)
...
@@ -242,10 +242,12 @@ static void scmdatabase_autostart_services(struct scmdatabase *db)
{
{
if
(
i
+
1
>=
size
)
if
(
i
+
1
>=
size
)
{
{
struct
service_entry
**
slist_new
;
size
*=
2
;
size
*=
2
;
s
ervices_list
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
services_list
,
size
*
sizeof
(
services_list
[
0
]));
s
list_new
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
services_list
,
size
*
sizeof
(
services_list
[
0
]));
if
(
!
s
ervices_list
)
if
(
!
s
list_new
)
break
;
break
;
services_list
=
slist_new
;
}
}
services_list
[
i
]
=
service
;
services_list
[
i
]
=
service
;
service
->
ref_count
++
;
service
->
ref_count
++
;
...
...
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