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
11c67756
Commit
11c67756
authored
Aug 11, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Avoid casts from COM objects to ifaces.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b7b031aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
clipboard.c
dlls/ole32/tests/clipboard.c
+3
-3
No files found.
dlls/ole32/tests/clipboard.c
View file @
11c67756
...
...
@@ -192,7 +192,7 @@ static HRESULT EnumFormatImpl_Create(FORMATETC *fmtetc, UINT fmtetc_cnt, IEnumFO
ret
->
fmtetc_cnt
=
fmtetc_cnt
;
ret
->
fmtetc
=
HeapAlloc
(
GetProcessHeap
(),
0
,
fmtetc_cnt
*
sizeof
(
FORMATETC
));
memcpy
(
ret
->
fmtetc
,
fmtetc
,
fmtetc_cnt
*
sizeof
(
FORMATETC
));
*
lplpformatetc
=
(
LPENUMFORMATETC
)
ret
;
*
lplpformatetc
=
&
ret
->
IEnumFORMATETC_iface
;
return
S_OK
;
}
...
...
@@ -395,7 +395,7 @@ static HRESULT DataObjectImpl_CreateText(LPCSTR text, LPDATAOBJECT *lplpdataobj)
obj
->
fmtetc
=
HeapAlloc
(
GetProcessHeap
(),
0
,
obj
->
fmtetc_cnt
*
sizeof
(
FORMATETC
));
InitFormatEtc
(
obj
->
fmtetc
[
0
],
CF_TEXT
,
TYMED_HGLOBAL
);
*
lplpdataobj
=
(
LPDATAOBJECT
)
obj
;
*
lplpdataobj
=
&
obj
->
IDataObject_iface
;
return
S_OK
;
}
...
...
@@ -451,7 +451,7 @@ static HRESULT DataObjectImpl_CreateComplex(LPDATAOBJECT *lplpdataobj)
InitFormatEtc
(
obj
->
fmtetc
[
7
],
cf_another
,
0xfffff
);
obj
->
fmtetc
[
7
].
dwAspect
=
DVASPECT_ICON
;
*
lplpdataobj
=
(
LPDATAOBJECT
)
obj
;
*
lplpdataobj
=
&
obj
->
IDataObject_iface
;
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