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
787ac750
Commit
787ac750
authored
May 10, 2013
by
Andrew Eikum
Committed by
Alexandre Julliard
May 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Sanity check some arguments.
parent
3a5eef4e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
typelib.c
dlls/oleaut32/typelib.c
+12
-0
No files found.
dlls/oleaut32/typelib.c
View file @
787ac750
...
...
@@ -5498,6 +5498,9 @@ static HRESULT WINAPI ITypeInfo_fnGetFuncDesc( ITypeInfo2 *iface, UINT index,
TRACE
(
"(%p) index %d
\n
"
,
This
,
index
);
if
(
!
ppFuncDesc
)
return
E_INVALIDARG
;
if
(
This
->
TypeAttr
.
typekind
==
TKIND_DISPATCH
)
hr
=
ITypeInfoImpl_GetInternalDispatchFuncDesc
((
ITypeInfo
*
)
iface
,
index
,
&
internal_funcdesc
,
NULL
,
...
...
@@ -5729,6 +5732,9 @@ static HRESULT WINAPI ITypeInfo_fnGetImplTypeFlags( ITypeInfo2 *iface,
TRACE
(
"(%p) index %d
\n
"
,
This
,
index
);
if
(
!
pImplTypeFlags
)
return
E_INVALIDARG
;
if
(
This
->
TypeAttr
.
typekind
==
TKIND_DISPATCH
&&
index
==
0
){
*
pImplTypeFlags
=
0
;
return
S_OK
;
...
...
@@ -7027,6 +7033,9 @@ static HRESULT WINAPI ITypeInfo_fnGetRefTypeInfo(
ITypeInfoImpl
*
This
=
impl_from_ITypeInfo2
(
iface
);
HRESULT
result
=
E_FAIL
;
if
(
!
ppTInfo
)
return
E_INVALIDARG
;
if
((
This
->
hreftype
!=
-
1
)
&&
(
This
->
hreftype
==
hRefType
))
{
*
ppTInfo
=
(
ITypeInfo
*
)
&
This
->
ITypeInfo2_iface
;
...
...
@@ -7424,6 +7433,9 @@ static HRESULT WINAPI ITypeInfo2_fnGetCustData(
TRACE
(
"%p %s %p
\n
"
,
This
,
debugstr_guid
(
guid
),
pVarVal
);
if
(
!
guid
||
!
pVarVal
)
return
E_INVALIDARG
;
pCData
=
TLB_get_custdata_by_guid
(
&
This
->
custdata_list
,
guid
);
VariantInit
(
pVarVal
);
...
...
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