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
59fc063a
Commit
59fc063a
authored
Oct 18, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Adjusted some incorrect sizeofs (Coverity).
parent
cd51c797
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
htmlelemcol.c
dlls/mshtml/htmlelemcol.c
+3
-3
No files found.
dlls/mshtml/htmlelemcol.c
View file @
59fc063a
...
...
@@ -61,7 +61,7 @@ static void elem_vector_add(elem_vector_t *buf, HTMLElement *elem)
{
if
(
buf
->
len
==
buf
->
size
)
{
buf
->
size
<<=
1
;
buf
->
buf
=
heap_realloc
(
buf
->
buf
,
buf
->
size
*
sizeof
(
HTMLElement
*
*
));
buf
->
buf
=
heap_realloc
(
buf
->
buf
,
buf
->
size
*
sizeof
(
HTMLElement
*
));
}
buf
->
buf
[
buf
->
len
++
]
=
elem
;
...
...
@@ -73,7 +73,7 @@ static void elem_vector_normalize(elem_vector_t *buf)
heap_free
(
buf
->
buf
);
buf
->
buf
=
NULL
;
}
else
if
(
buf
->
size
>
buf
->
len
)
{
buf
->
buf
=
heap_realloc
(
buf
->
buf
,
buf
->
len
*
sizeof
(
HTMLElement
*
*
));
buf
->
buf
=
heap_realloc
(
buf
->
buf
,
buf
->
len
*
sizeof
(
HTMLElement
*
));
}
buf
->
size
=
buf
->
len
;
...
...
@@ -530,7 +530,7 @@ IHTMLElementCollection *create_all_collection(HTMLDOMNode *node, BOOL include_ro
{
elem_vector_t
buf
=
{
NULL
,
0
,
8
};
buf
.
buf
=
heap_alloc
(
buf
.
size
*
sizeof
(
HTMLElement
*
*
));
buf
.
buf
=
heap_alloc
(
buf
.
size
*
sizeof
(
HTMLElement
*
));
if
(
include_root
)
elem_vector_add
(
&
buf
,
elem_from_HTMLDOMNode
(
node
));
...
...
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