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
11451080
Commit
11451080
authored
Jul 21, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: No need to test for interface pointer being null.
parent
2f61e191
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
antimoniker.c
dlls/ole32/antimoniker.c
+1
-1
compositemoniker.c
dlls/ole32/compositemoniker.c
+2
-2
enumx.c
dlls/ole32/enumx.c
+1
-1
filemoniker.c
dlls/ole32/filemoniker.c
+3
-3
No files found.
dlls/ole32/antimoniker.c
View file @
11451080
...
@@ -67,7 +67,7 @@ AntiMonikerImpl_QueryInterface(IMoniker* iface,REFIID riid,void** ppvObject)
...
@@ -67,7 +67,7 @@ AntiMonikerImpl_QueryInterface(IMoniker* iface,REFIID riid,void** ppvObject)
TRACE
(
"(%p,%p,%p)
\n
"
,
This
,
riid
,
ppvObject
);
TRACE
(
"(%p,%p,%p)
\n
"
,
This
,
riid
,
ppvObject
);
/* Perform a sanity check on the parameters.*/
/* Perform a sanity check on the parameters.*/
if
(
(
This
==
0
)
||
(
ppvObject
==
0
)
)
if
(
ppvObject
==
0
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
/* Initialize the return parameter */
/* Initialize the return parameter */
...
...
dlls/ole32/compositemoniker.c
View file @
11451080
...
@@ -101,7 +101,7 @@ CompositeMonikerImpl_QueryInterface(IMoniker* iface,REFIID riid,void** ppvObject
...
@@ -101,7 +101,7 @@ CompositeMonikerImpl_QueryInterface(IMoniker* iface,REFIID riid,void** ppvObject
TRACE
(
"(%p,%p,%p)
\n
"
,
This
,
riid
,
ppvObject
);
TRACE
(
"(%p,%p,%p)
\n
"
,
This
,
riid
,
ppvObject
);
/* Perform a sanity check on the parameters.*/
/* Perform a sanity check on the parameters.*/
if
(
(
This
==
0
)
||
(
ppvObject
==
0
)
)
if
(
ppvObject
==
0
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
/* Initialize the return parameter */
/* Initialize the return parameter */
...
@@ -1504,7 +1504,7 @@ EnumMonikerImpl_QueryInterface(IEnumMoniker* iface,REFIID riid,void** ppvObject)
...
@@ -1504,7 +1504,7 @@ EnumMonikerImpl_QueryInterface(IEnumMoniker* iface,REFIID riid,void** ppvObject)
TRACE
(
"(%p,%p,%p)
\n
"
,
This
,
riid
,
ppvObject
);
TRACE
(
"(%p,%p,%p)
\n
"
,
This
,
riid
,
ppvObject
);
/* Perform a sanity check on the parameters.*/
/* Perform a sanity check on the parameters.*/
if
(
(
This
==
0
)
||
(
ppvObject
==
0
)
)
if
(
ppvObject
==
0
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
/* Initialize the return parameter */
/* Initialize the return parameter */
...
...
dlls/ole32/enumx.c
View file @
11451080
...
@@ -51,7 +51,7 @@ HRESULT WINAPI enumx_QueryInterface(
...
@@ -51,7 +51,7 @@ HRESULT WINAPI enumx_QueryInterface(
REFIID
riid
,
REFIID
riid
,
void
**
ppvObject
)
void
**
ppvObject
)
{
{
if
(
(
This
==
0
)
||
(
ppvObject
==
0
)
)
if
(
ppvObject
==
0
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
*
ppvObject
=
0
;
*
ppvObject
=
0
;
...
...
dlls/ole32/filemoniker.c
View file @
11451080
...
@@ -77,7 +77,7 @@ FileMonikerImpl_QueryInterface(IMoniker* iface,REFIID riid,void** ppvObject)
...
@@ -77,7 +77,7 @@ FileMonikerImpl_QueryInterface(IMoniker* iface,REFIID riid,void** ppvObject)
TRACE
(
"(%p,%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
TRACE
(
"(%p,%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
/* Perform a sanity check on the parameters.*/
/* Perform a sanity check on the parameters.*/
if
(
(
This
==
0
)
||
(
ppvObject
==
0
)
)
if
(
ppvObject
==
0
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
/* Initialize the return parameter */
/* Initialize the return parameter */
...
@@ -1450,7 +1450,7 @@ HRESULT WINAPI CreateFileMoniker(LPCOLESTR lpszPathName, LPMONIKER * ppmk)
...
@@ -1450,7 +1450,7 @@ HRESULT WINAPI CreateFileMoniker(LPCOLESTR lpszPathName, LPMONIKER * ppmk)
hr
=
FileMonikerImpl_Construct
(
newFileMoniker
,
lpszPathName
);
hr
=
FileMonikerImpl_Construct
(
newFileMoniker
,
lpszPathName
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
hr
=
FileMonikerImpl
_QueryInterface
((
IMoniker
*
)
newFileMoniker
,
&
IID_IMoniker
,(
void
**
)
ppmk
);
hr
=
IMoniker
_QueryInterface
((
IMoniker
*
)
newFileMoniker
,
&
IID_IMoniker
,(
void
**
)
ppmk
);
else
else
HeapFree
(
GetProcessHeap
(),
0
,
newFileMoniker
);
HeapFree
(
GetProcessHeap
(),
0
,
newFileMoniker
);
...
@@ -1600,7 +1600,7 @@ static HRESULT WINAPI FileMonikerCF_CreateInstance(LPCLASSFACTORY iface,
...
@@ -1600,7 +1600,7 @@ static HRESULT WINAPI FileMonikerCF_CreateInstance(LPCLASSFACTORY iface,
hr
=
FileMonikerImpl_Construct
(
newFileMoniker
,
wszEmpty
);
hr
=
FileMonikerImpl_Construct
(
newFileMoniker
,
wszEmpty
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
hr
=
FileMonikerImpl
_QueryInterface
((
IMoniker
*
)
newFileMoniker
,
riid
,
ppv
);
hr
=
IMoniker
_QueryInterface
((
IMoniker
*
)
newFileMoniker
,
riid
,
ppv
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
HeapFree
(
GetProcessHeap
(),
0
,
newFileMoniker
);
HeapFree
(
GetProcessHeap
(),
0
,
newFileMoniker
);
...
...
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