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
cb74cd3e
Commit
cb74cd3e
authored
Jan 29, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Remove useless NULL checks.
parent
e9debeb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
dispatch.c
dlls/oleaut32/dispatch.c
+9
-11
No files found.
dlls/oleaut32/dispatch.c
View file @
cb74cd3e
...
@@ -226,13 +226,15 @@ static HRESULT WINAPI StdDispatch_QueryInterface(
...
@@ -226,13 +226,15 @@ static HRESULT WINAPI StdDispatch_QueryInterface(
void
**
ppvObject
)
void
**
ppvObject
)
{
{
StdDispatch
*
This
=
impl_from_IDispatch
(
iface
);
StdDispatch
*
This
=
impl_from_IDispatch
(
iface
);
TRACE
(
"(%p)->(%s, %p)
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppvObject
);
TRACE
(
"(%p)->(%s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
*
ppvObject
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IDispatch
)
||
if
(
IsEqualIID
(
riid
,
&
IID_IDispatch
)
||
IsEqualIID
(
riid
,
&
IID_IUnknown
))
IsEqualIID
(
riid
,
&
IID_IUnknown
))
{
{
*
ppvObject
=
This
;
*
ppvObject
=
iface
;
I
Unknown_AddRef
((
LPUNKNOWN
)
*
ppvObject
);
I
Dispatch_AddRef
(
iface
);
return
S_OK
;
return
S_OK
;
}
}
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
...
@@ -293,10 +295,8 @@ static ULONG WINAPI StdDispatch_Release(LPDISPATCH iface)
...
@@ -293,10 +295,8 @@ static ULONG WINAPI StdDispatch_Release(LPDISPATCH iface)
*/
*/
static
HRESULT
WINAPI
StdDispatch_GetTypeInfoCount
(
LPDISPATCH
iface
,
UINT
*
pctinfo
)
static
HRESULT
WINAPI
StdDispatch_GetTypeInfoCount
(
LPDISPATCH
iface
,
UINT
*
pctinfo
)
{
{
StdDispatch
*
This
=
impl_from_IDispatch
(
iface
);
TRACE
(
"(%p)
\n
"
,
pctinfo
);
TRACE
(
"(%p)
\n
"
,
pctinfo
);
*
pctinfo
=
1
;
*
pctinfo
=
This
->
pTypeInfo
?
1
:
0
;
return
S_OK
;
return
S_OK
;
}
}
...
@@ -327,11 +327,9 @@ static HRESULT WINAPI StdDispatch_GetTypeInfo(LPDISPATCH iface, UINT iTInfo, LCI
...
@@ -327,11 +327,9 @@ static HRESULT WINAPI StdDispatch_GetTypeInfo(LPDISPATCH iface, UINT iTInfo, LCI
if
(
iTInfo
!=
0
)
if
(
iTInfo
!=
0
)
return
DISP_E_BADINDEX
;
return
DISP_E_BADINDEX
;
if
(
This
->
pTypeInfo
)
*
ppTInfo
=
This
->
pTypeInfo
;
{
ITypeInfo_AddRef
(
*
ppTInfo
);
*
ppTInfo
=
This
->
pTypeInfo
;
ITypeInfo_AddRef
(
*
ppTInfo
);
}
return
S_OK
;
return
S_OK
;
}
}
...
...
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