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
826bff38
Commit
826bff38
authored
Jun 27, 2013
by
Marcus Meissner
Committed by
Alexandre Julliard
Jun 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fixed bad sizeof()s in composite moniker (Coverity).
parent
dc0cf831
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
compositemoniker.c
dlls/ole32/compositemoniker.c
+5
-5
No files found.
dlls/ole32/compositemoniker.c
View file @
826bff38
...
...
@@ -236,7 +236,7 @@ CompositeMonikerImpl_Load(IMoniker* iface,IStream* pStm)
if
(
++
This
->
tabLastIndex
==
This
->
tabSize
){
This
->
tabSize
+=
BLOCK_TAB_SIZE
;
This
->
tabMoniker
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
This
->
tabMoniker
,
This
->
tabSize
*
sizeof
(
IMoniker
));
This
->
tabMoniker
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
This
->
tabMoniker
,
This
->
tabSize
*
sizeof
(
This
->
tabMoniker
[
0
]
));
if
(
This
->
tabMoniker
==
NULL
)
return
E_OUTOFMEMORY
;
...
...
@@ -1443,7 +1443,7 @@ static HRESULT WINAPI CompositeMonikerMarshalImpl_UnmarshalInterface(IMarshal *i
if
(
This
->
tabLastIndex
+
2
>
This
->
tabSize
)
{
This
->
tabSize
+=
max
(
BLOCK_TAB_SIZE
,
2
);
This
->
tabMoniker
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
This
->
tabMoniker
,
This
->
tabSize
*
sizeof
(
IMoniker
));
This
->
tabMoniker
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
This
->
tabMoniker
,
This
->
tabSize
*
sizeof
(
This
->
tabMoniker
[
0
]
));
if
(
This
->
tabMoniker
==
NULL
)
return
E_OUTOFMEMORY
;
...
...
@@ -1658,7 +1658,7 @@ EnumMonikerImpl_CreateEnumMoniker(IMoniker** tabMoniker, ULONG tabSize,
newEnumMoniker
->
tabSize
=
tabSize
;
newEnumMoniker
->
currentPos
=
currentPos
;
newEnumMoniker
->
tabMoniker
=
HeapAlloc
(
GetProcessHeap
(),
0
,
tabSize
*
sizeof
(
IMoniker
));
newEnumMoniker
->
tabMoniker
=
HeapAlloc
(
GetProcessHeap
(),
0
,
tabSize
*
sizeof
(
newEnumMoniker
->
tabMoniker
[
0
]
));
if
(
newEnumMoniker
->
tabMoniker
==
NULL
)
{
HeapFree
(
GetProcessHeap
(),
0
,
newEnumMoniker
);
...
...
@@ -1765,7 +1765,7 @@ CompositeMonikerImpl_Construct(IMoniker **ppMoniker, IMoniker *pmkFirst, IMonike
This
->
tabSize
=
BLOCK_TAB_SIZE
;
This
->
tabLastIndex
=
0
;
This
->
tabMoniker
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
tabSize
*
sizeof
(
IMoniker
));
This
->
tabMoniker
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
tabSize
*
sizeof
(
This
->
tabMoniker
[
0
]
));
if
(
This
->
tabMoniker
==
NULL
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
E_OUTOFMEMORY
;
...
...
@@ -1893,7 +1893,7 @@ CompositeMonikerImpl_Construct(IMoniker **ppMoniker, IMoniker *pmkFirst, IMonike
This
->
tabSize
+=
BLOCK_TAB_SIZE
;
This
->
tabMoniker
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
This
->
tabMoniker
,
This
->
tabSize
*
sizeof
(
IMoniker
));
This
->
tabMoniker
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
This
->
tabMoniker
,
This
->
tabSize
*
sizeof
(
This
->
tabMoniker
[
0
]
));
if
(
This
->
tabMoniker
==
NULL
){
HeapFree
(
GetProcessHeap
(),
0
,
tab_moniker
);
...
...
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