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
7a6eeb8c
Commit
7a6eeb8c
authored
Dec 11, 2022
by
Fabian Maurer
Committed by
Alexandre Julliard
Dec 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Pass correct parameter to realloc and simplify code (Coverity).
Signed-off-by:
Fabian Maurer
<
dark.shadow4@web.de
>
parent
ed0e5d9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
sec_mgr.c
dlls/urlmon/sec_mgr.c
+1
-2
No files found.
dlls/urlmon/sec_mgr.c
View file @
7a6eeb8c
...
...
@@ -1276,13 +1276,12 @@ static LPDWORD build_zonemap_from_reg(void)
if
(
used
==
allocated
)
{
LPDWORD
new_data
;
allocated
*=
2
;
new_data
=
realloc
(
data
,
allocated
*
sizeof
(
DWORD
));
if
(
!
new_data
)
goto
cleanup
;
memset
(
new_data
+
allocated
,
0
,
allocated
*
sizeof
(
DWORD
));
data
=
new_data
;
allocated
*=
2
;
}
data
[
used
]
=
wcstol
(
name
,
NULL
,
10
);
}
...
...
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