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
c0fbbe7d
Commit
c0fbbe7d
authored
Mar 17, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Mar 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Use IsEqualIID rather than memcmp.
parent
319d0ddc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
20 deletions
+4
-20
clipboard.c
dlls/ole32/clipboard.c
+4
-20
No files found.
dlls/ole32/clipboard.c
View file @
c0fbbe7d
...
...
@@ -730,40 +730,24 @@ static HRESULT WINAPI OLEClipbrd_IDataObject_QueryInterface(
void
**
ppvObject
)
{
ole_clipbrd
*
This
=
impl_from_IDataObject
(
iface
);
TRACE
(
"(%p)->(
\n\t
IID:
\t
%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
TRACE
(
"(%p)->(
IID:%s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
/*
* Perform a sanity check on the parameters.
*/
if
(
(
This
==
0
)
||
(
ppvObject
==
0
)
)
return
E_INVALIDARG
;
/*
* Initialize the return parameter.
*/
*
ppvObject
=
0
;
/*
* Compare the riid with the interface IDs implemented by this object.
*/
if
(
memcmp
(
&
IID_IUnknown
,
riid
,
sizeof
(
IID_IUnknown
))
==
0
)
if
(
IsEqualIID
(
&
IID_IUnknown
,
riid
)
||
IsEqualIID
(
&
IID_IDataObject
,
riid
))
{
*
ppvObject
=
iface
;
}
else
if
(
memcmp
(
&
IID_IDataObject
,
riid
,
sizeof
(
IID_IDataObject
))
==
0
)
{
*
ppvObject
=
&
This
->
lpvtbl
;
}
else
/* We only support IUnknown and IDataObject */
else
{
WARN
(
"() : asking for unsupported interface %s
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
/*
* Query Interface always increases the reference count by one when it is
* successful.
*/
IUnknown_AddRef
((
IUnknown
*
)
*
ppvObject
);
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