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
a3c5c50b
Commit
a3c5c50b
authored
Sep 08, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Avoid casts from COM objects to interfaces.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
502b9e9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
olefont.c
dlls/oleaut32/olefont.c
+4
-2
olepicture.c
dlls/oleaut32/olepicture.c
+2
-1
No files found.
dlls/oleaut32/olefont.c
View file @
a3c5c50b
...
...
@@ -1014,8 +1014,10 @@ static HRESULT WINAPI OLEFontImpl_Clone(
newObject
->
pPropertyNotifyCP
=
NULL
;
newObject
->
pFontEventsCP
=
NULL
;
CreateConnectionPoint
((
IUnknown
*
)
newObject
,
&
IID_IPropertyNotifySink
,
&
newObject
->
pPropertyNotifyCP
);
CreateConnectionPoint
((
IUnknown
*
)
newObject
,
&
IID_IFontEventsDisp
,
&
newObject
->
pFontEventsCP
);
CreateConnectionPoint
((
IUnknown
*
)
&
newObject
->
IFont_iface
,
&
IID_IPropertyNotifySink
,
&
newObject
->
pPropertyNotifyCP
);
CreateConnectionPoint
((
IUnknown
*
)
&
newObject
->
IFont_iface
,
&
IID_IFontEventsDisp
,
&
newObject
->
pFontEventsCP
);
if
(
!
newObject
->
pPropertyNotifyCP
||
!
newObject
->
pFontEventsCP
)
{
...
...
dlls/oleaut32/olepicture.c
View file @
a3c5c50b
...
...
@@ -299,7 +299,8 @@ static OLEPictureImpl* OLEPictureImpl_Construct(LPPICTDESC pictDesc, BOOL fOwn)
newObject
->
IConnectionPointContainer_iface
.
lpVtbl
=
&
OLEPictureImpl_IConnectionPointContainer_VTable
;
newObject
->
pCP
=
NULL
;
CreateConnectionPoint
((
IUnknown
*
)
newObject
,
&
IID_IPropertyNotifySink
,
&
newObject
->
pCP
);
CreateConnectionPoint
((
IUnknown
*
)
&
newObject
->
IPicture_iface
,
&
IID_IPropertyNotifySink
,
&
newObject
->
pCP
);
if
(
!
newObject
->
pCP
)
{
HeapFree
(
GetProcessHeap
(),
0
,
newObject
);
...
...
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