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
faaeeea9
Commit
faaeeea9
authored
Feb 21, 2013
by
Andrew Talbot
Committed by
Alexandre Julliard
Feb 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Avoid signed-unsigned integer comparisons.
parent
eedf2f6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
compositemoniker.c
dlls/ole32/compositemoniker.c
+6
-6
storage32.c
dlls/ole32/storage32.c
+2
-2
No files found.
dlls/ole32/compositemoniker.c
View file @
faaeeea9
...
...
@@ -1638,10 +1638,10 @@ static const IEnumMonikerVtbl VT_EnumMonikerImpl =
******************************************************************************/
static
HRESULT
EnumMonikerImpl_CreateEnumMoniker
(
IMoniker
**
tabMoniker
,
ULONG
tabSize
,
ULONG
currentPos
,
BOOL
leftToRig
th
,
IEnumMoniker
**
ppmk
)
ULONG
currentPos
,
BOOL
leftToRig
ht
,
IEnumMoniker
**
ppmk
)
{
EnumMonikerImpl
*
newEnumMoniker
;
int
i
;
ULONG
i
;
if
(
currentPos
>
tabSize
)
return
E_INVALIDARG
;
...
...
@@ -1665,17 +1665,17 @@ EnumMonikerImpl_CreateEnumMoniker(IMoniker** tabMoniker, ULONG tabSize,
return
E_OUTOFMEMORY
;
}
if
(
leftToRig
th
)
if
(
leftToRig
ht
)
for
(
i
=
0
;
i
<
tabSize
;
i
++
){
newEnumMoniker
->
tabMoniker
[
i
]
=
tabMoniker
[
i
];
IMoniker_AddRef
(
tabMoniker
[
i
]);
}
else
for
(
i
=
tabSize
-
1
;
i
>=
0
;
i
--
){
for
(
i
=
tabSize
;
i
>
0
;
i
--
){
newEnumMoniker
->
tabMoniker
[
tabSize
-
i
-
1
]
=
tabMoniker
[
i
];
IMoniker_AddRef
(
tabMoniker
[
i
]);
newEnumMoniker
->
tabMoniker
[
tabSize
-
i
]
=
tabMoniker
[
i
-
1
];
IMoniker_AddRef
(
tabMoniker
[
i
-
1
]);
}
*
ppmk
=&
newEnumMoniker
->
IEnumMoniker_iface
;
...
...
dlls/ole32/storage32.c
View file @
faaeeea9
...
...
@@ -1767,7 +1767,7 @@ static HRESULT WINAPI StorageBaseImpl_CopyTo(
StorageBaseImpl
*
This
=
impl_from_IStorage
(
iface
);
BOOL
skip_storage
=
FALSE
,
skip_stream
=
FALSE
;
int
i
;
DWORD
i
;
TRACE
(
"(%p, %d, %p, %p, %p)
\n
"
,
iface
,
ciidExclude
,
rgiidExclude
,
...
...
@@ -2822,7 +2822,7 @@ static HRESULT StorageImpl_Construct(
{
ULONG
current_block
=
This
->
extBigBlockDepotStart
;
ULONG
cache_size
=
This
->
extBigBlockDepotCount
*
2
;
int
i
;
ULONG
i
;
This
->
extBigBlockDepotLocations
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
ULONG
)
*
cache_size
);
if
(
!
This
->
extBigBlockDepotLocations
)
...
...
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