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
48d83982
Commit
48d83982
authored
Nov 22, 2007
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Nov 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Simplify two conditions based on the fact that unsigned variables cannot be negative.
parent
1d620647
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
typelib.c
dlls/oleaut32/typelib.c
+3
-3
No files found.
dlls/oleaut32/typelib.c
View file @
48d83982
...
...
@@ -3758,7 +3758,7 @@ static HRESULT WINAPI ITypeLib2_fnGetTypeInfoType(
int
i
;
ITypeInfoImpl
*
pTInfo
=
This
->
pTypeInfo
;
if
(
(
ITypeLib2_fnGetTypeInfoCount
(
iface
)
<
index
+
1
)
||
(
index
<
0
)
)
if
(
ITypeLib2_fnGetTypeInfoCount
(
iface
)
<
index
+
1
)
return
TYPE_E_ELEMENTNOTFOUND
;
TRACE
(
"(%p) index %d
\n
"
,
This
,
index
);
...
...
@@ -6647,7 +6647,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetParamCustData(
for
(
i
=
0
,
pFDesc
=
This
->
funclist
;
i
!=
indexFunc
&&
pFDesc
;
i
++
,
pFDesc
=
pFDesc
->
next
);
if
(
pFDesc
&&
indexParam
>=
0
&&
indexParam
<
pFDesc
->
funcdesc
.
cParams
)
if
(
pFDesc
&&
indexParam
<
pFDesc
->
funcdesc
.
cParams
)
for
(
pCData
=
pFDesc
->
pParamDesc
[
indexParam
].
pCustData
;
pCData
;
pCData
=
pCData
->
next
)
if
(
IsEqualIID
(
guid
,
&
pCData
->
guid
))
break
;
...
...
@@ -6880,7 +6880,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetAllParamCustData( ITypeInfo2 * iface,
for
(
i
=
0
,
pFDesc
=
This
->
funclist
;
i
!=
indexFunc
&&
pFDesc
;
i
++
,
pFDesc
=
pFDesc
->
next
)
;
if
(
pFDesc
&&
indexParam
>=
0
&&
indexParam
<
pFDesc
->
funcdesc
.
cParams
){
if
(
pFDesc
&&
indexParam
<
pFDesc
->
funcdesc
.
cParams
){
pCustData
->
prgCustData
=
TLB_Alloc
(
pFDesc
->
pParamDesc
[
indexParam
].
ctCustData
*
sizeof
(
CUSTDATAITEM
));
...
...
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