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
6d748ce3
Commit
6d748ce3
authored
Jul 04, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Jul 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Use specific types insted of sizeof(ULONG_PTR) in alloc_handle.
Resolves a scan-build warning.
parent
44168cf4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
handle.c
dlls/winhttp/handle.c
+3
-3
No files found.
dlls/winhttp/handle.c
View file @
6d748ce3
...
...
@@ -94,15 +94,15 @@ HINTERNET alloc_handle( struct object_header *hdr )
if
(
!
max_handles
)
{
num
=
HANDLE_CHUNK_SIZE
;
if
(
!
(
p
=
calloc
(
1
,
sizeof
(
ULONG_PTR
)
*
num
)))
goto
end
;
if
(
!
(
p
=
calloc
(
1
,
sizeof
(
*
p
)
*
num
)))
goto
end
;
handles
=
p
;
max_handles
=
num
;
}
if
(
max_handles
==
next_handle
)
{
size_t
new_size
,
old_size
=
max_handles
*
sizeof
(
ULONG_PTR
);
size_t
new_size
,
old_size
=
max_handles
*
sizeof
(
*
handles
);
num
=
max_handles
*
2
;
new_size
=
num
*
sizeof
(
ULONG_PTR
);
new_size
=
num
*
sizeof
(
*
handles
);
if
(
!
(
p
=
realloc
(
handles
,
new_size
)))
goto
end
;
memset
(
(
char
*
)
p
+
old_size
,
0
,
new_size
-
old_size
);
handles
=
p
;
...
...
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