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
b1ae9629
Commit
b1ae9629
authored
May 18, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: COM cleanup for the IOleClientSite iface.
parent
2706e4db
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
35 deletions
+33
-35
richole.c
dlls/riched20/richole.c
+33
-35
No files found.
dlls/riched20/richole.c
View file @
b1ae9629
...
...
@@ -72,7 +72,7 @@ struct ITextSelectionImpl {
};
struct
IOleClientSiteImpl
{
const
IOleClientSiteVtbl
*
lpVtbl
;
IOleClientSite
IOleClientSite_iface
;
LONG
ref
;
IRichEditOleImpl
*
reOle
;
...
...
@@ -135,7 +135,7 @@ IRichEditOle_fnRelease(IRichEditOle *me)
TRACE
(
"Destroying %p
\n
"
,
This
);
This
->
txtSel
->
reOle
=
NULL
;
ITextSelection_Release
(
&
This
->
txtSel
->
ITextSelection_iface
);
IOleClientSite_Release
(
(
IOleClientSite
*
)
This
->
clientSit
e
);
IOleClientSite_Release
(
&
This
->
clientSite
->
IOleClientSite_ifac
e
);
heap_free
(
This
);
}
return
ref
;
...
...
@@ -166,6 +166,11 @@ IRichEditOle_fnConvertObject(IRichEditOle *me, LONG iob,
return
E_NOTIMPL
;
}
static
inline
IOleClientSiteImpl
*
impl_from_IOleClientSite
(
IOleClientSite
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IOleClientSiteImpl
,
IOleClientSite_iface
);
}
static
HRESULT
WINAPI
IOleClientSite_fnQueryInterface
(
IOleClientSite
*
me
,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
...
...
@@ -185,88 +190,81 @@ IOleClientSite_fnQueryInterface(IOleClientSite *me, REFIID riid, LPVOID *ppvObj)
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
IOleClientSite_fnAddRef
(
IOleClientSite
*
me
)
static
ULONG
WINAPI
IOleClientSite_fnAddRef
(
IOleClientSite
*
iface
)
{
IOleClientSiteImpl
*
This
=
(
IOleClientSiteImpl
*
)
me
;
IOleClientSiteImpl
*
This
=
impl_from_IOleClientSite
(
iface
)
;
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
IOleClientSite_fnRelease
(
IOleClientSite
*
me
)
static
ULONG
WINAPI
IOleClientSite_fnRelease
(
IOleClientSite
*
iface
)
{
IOleClientSiteImpl
*
This
=
(
IOleClientSiteImpl
*
)
me
;
IOleClientSiteImpl
*
This
=
impl_from_IOleClientSite
(
iface
)
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
ref
==
0
)
heap_free
(
This
);
return
ref
;
}
static
HRESULT
WINAPI
IOleClientSite_fnSaveObject
(
IOleClientSite
*
me
)
static
HRESULT
WINAPI
IOleClientSite_fnSaveObject
(
IOleClientSite
*
iface
)
{
IOleClientSiteImpl
*
This
=
(
IOleClientSiteImpl
*
)
me
;
IOleClientSiteImpl
*
This
=
impl_from_IOleClientSite
(
iface
)
;
if
(
!
This
->
reOle
)
return
CO_E_RELEASED
;
FIXME
(
"stub %p
\n
"
,
m
e
);
FIXME
(
"stub %p
\n
"
,
ifac
e
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IOleClientSite_fnGetMoniker
(
IOleClientSite
*
me
,
DWORD
dwAssign
,
DWORD
dwWhichMoniker
,
IMoniker
**
ppmk
)
static
HRESULT
WINAPI
IOleClientSite_fnGetMoniker
(
IOleClientSite
*
iface
,
DWORD
dwAssign
,
DWORD
dwWhichMoniker
,
IMoniker
**
ppmk
)
{
IOleClientSiteImpl
*
This
=
(
IOleClientSiteImpl
*
)
me
;
IOleClientSiteImpl
*
This
=
impl_from_IOleClientSite
(
iface
)
;
if
(
!
This
->
reOle
)
return
CO_E_RELEASED
;
FIXME
(
"stub %p
\n
"
,
m
e
);
FIXME
(
"stub %p
\n
"
,
ifac
e
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IOleClientSite_fnGetContainer
(
IOleClientSite
*
me
,
IOleContainer
**
ppContainer
)
static
HRESULT
WINAPI
IOleClientSite_fnGetContainer
(
IOleClientSite
*
iface
,
IOleContainer
**
ppContainer
)
{
IOleClientSiteImpl
*
This
=
(
IOleClientSiteImpl
*
)
me
;
IOleClientSiteImpl
*
This
=
impl_from_IOleClientSite
(
iface
)
;
if
(
!
This
->
reOle
)
return
CO_E_RELEASED
;
FIXME
(
"stub %p
\n
"
,
m
e
);
FIXME
(
"stub %p
\n
"
,
ifac
e
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IOleClientSite_fnShowObject
(
IOleClientSite
*
me
)
static
HRESULT
WINAPI
IOleClientSite_fnShowObject
(
IOleClientSite
*
iface
)
{
IOleClientSiteImpl
*
This
=
(
IOleClientSiteImpl
*
)
me
;
IOleClientSiteImpl
*
This
=
impl_from_IOleClientSite
(
iface
)
;
if
(
!
This
->
reOle
)
return
CO_E_RELEASED
;
FIXME
(
"stub %p
\n
"
,
m
e
);
FIXME
(
"stub %p
\n
"
,
ifac
e
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IOleClientSite_fnOnShowWindow
(
IOleClientSite
*
me
,
BOOL
fShow
)
static
HRESULT
WINAPI
IOleClientSite_fnOnShowWindow
(
IOleClientSite
*
iface
,
BOOL
fShow
)
{
IOleClientSiteImpl
*
This
=
(
IOleClientSiteImpl
*
)
me
;
IOleClientSiteImpl
*
This
=
impl_from_IOleClientSite
(
iface
)
;
if
(
!
This
->
reOle
)
return
CO_E_RELEASED
;
FIXME
(
"stub %p
\n
"
,
m
e
);
FIXME
(
"stub %p
\n
"
,
ifac
e
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IOleClientSite_fnRequestNewObjectLayout
(
IOleClientSite
*
me
)
static
HRESULT
WINAPI
IOleClientSite_fnRequestNewObjectLayout
(
IOleClientSite
*
iface
)
{
IOleClientSiteImpl
*
This
=
(
IOleClientSiteImpl
*
)
me
;
IOleClientSiteImpl
*
This
=
impl_from_IOleClientSite
(
iface
)
;
if
(
!
This
->
reOle
)
return
CO_E_RELEASED
;
FIXME
(
"stub %p
\n
"
,
m
e
);
FIXME
(
"stub %p
\n
"
,
ifac
e
);
return
E_NOTIMPL
;
}
...
...
@@ -289,7 +287,7 @@ CreateOleClientSite(IRichEditOleImpl *reOle)
if
(
!
clientSite
)
return
NULL
;
clientSite
->
lpVtbl
=
&
ocst
;
clientSite
->
IOleClientSite_iface
.
lpVtbl
=
&
ocst
;
clientSite
->
ref
=
1
;
clientSite
->
reOle
=
reOle
;
return
clientSite
;
...
...
@@ -305,7 +303,7 @@ IRichEditOle_fnGetClientSite(IRichEditOle *me,
if
(
!
lplpolesite
)
return
E_INVALIDARG
;
*
lplpolesite
=
(
IOleClientSite
*
)
This
->
clientSit
e
;
*
lplpolesite
=
&
This
->
clientSite
->
IOleClientSite_ifac
e
;
IOleClientSite_fnAddRef
(
*
lplpolesite
);
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