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
12bc7c0a
Commit
12bc7c0a
authored
Nov 01, 2020
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Nov 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: IFont never had an IPersistStreamInit interface.
Signed-off-by:
Damjan Jovanovic
<
damjan.jov@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bcdb58cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
91 deletions
+5
-91
olefont.c
dlls/oleaut32/olefont.c
+0
-91
olefont.c
dlls/oleaut32/tests/olefont.c
+5
-0
No files found.
dlls/oleaut32/olefont.c
View file @
12bc7c0a
...
...
@@ -255,7 +255,6 @@ struct OLEFontImpl
IPersistStream
IPersistStream_iface
;
IConnectionPointContainer
IConnectionPointContainer_iface
;
IPersistPropertyBag
IPersistPropertyBag_iface
;
IPersistStreamInit
IPersistStreamInit_iface
;
/*
* Reference count for that instance of the class.
*/
...
...
@@ -311,11 +310,6 @@ static inline OLEFontImpl *impl_from_IPersistPropertyBag( IPersistPropertyBag *i
return
CONTAINING_RECORD
(
iface
,
OLEFontImpl
,
IPersistPropertyBag_iface
);
}
static
inline
OLEFontImpl
*
impl_from_IPersistStreamInit
(
IPersistStreamInit
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
OLEFontImpl
,
IPersistStreamInit_iface
);
}
/***********************************************************************
* Prototypes for the implementation functions for the IFont
...
...
@@ -491,10 +485,6 @@ static HRESULT WINAPI OLEFontImpl_QueryInterface(
{
*
ppvObject
=
&
this
->
IPersistPropertyBag_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IPersistStreamInit
,
riid
))
{
*
ppvObject
=
&
this
->
IPersistStreamInit_iface
;
}
if
(
!*
ppvObject
)
{
...
...
@@ -2057,86 +2047,6 @@ static const IPersistPropertyBagVtbl OLEFontImpl_IPersistPropertyBag_VTable =
};
/************************************************************************
* OLEFontImpl implementation of IPersistStreamInit.
*/
static
HRESULT
WINAPI
OLEFontImpl_IPersistStreamInit_QueryInterface
(
IPersistStreamInit
*
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
OLEFontImpl
*
this
=
impl_from_IPersistStreamInit
(
iface
);
return
IFont_QueryInterface
(
&
this
->
IFont_iface
,
riid
,
ppvObj
);
}
static
ULONG
WINAPI
OLEFontImpl_IPersistStreamInit_AddRef
(
IPersistStreamInit
*
iface
)
{
OLEFontImpl
*
this
=
impl_from_IPersistStreamInit
(
iface
);
return
IFont_AddRef
(
&
this
->
IFont_iface
);
}
static
ULONG
WINAPI
OLEFontImpl_IPersistStreamInit_Release
(
IPersistStreamInit
*
iface
)
{
OLEFontImpl
*
this
=
impl_from_IPersistStreamInit
(
iface
);
return
IFont_Release
(
&
this
->
IFont_iface
);
}
static
HRESULT
WINAPI
OLEFontImpl_IPersistStreamInit_GetClassID
(
IPersistStreamInit
*
iface
,
CLSID
*
classid
)
{
FIXME
(
"(%p,%p), stub!
\n
"
,
iface
,
classid
);
return
E_FAIL
;
}
static
HRESULT
WINAPI
OLEFontImpl_IPersistStreamInit_IsDirty
(
IPersistStreamInit
*
iface
)
{
FIXME
(
"(%p), stub!
\n
"
,
iface
);
return
E_FAIL
;
}
static
HRESULT
WINAPI
OLEFontImpl_IPersistStreamInit_Load
(
IPersistStreamInit
*
iface
,
LPSTREAM
pStm
)
{
FIXME
(
"(%p,%p), stub!
\n
"
,
iface
,
pStm
);
return
E_FAIL
;
}
static
HRESULT
WINAPI
OLEFontImpl_IPersistStreamInit_Save
(
IPersistStreamInit
*
iface
,
LPSTREAM
pStm
,
BOOL
fClearDirty
)
{
FIXME
(
"(%p,%p,%d), stub!
\n
"
,
iface
,
pStm
,
fClearDirty
);
return
E_FAIL
;
}
static
HRESULT
WINAPI
OLEFontImpl_IPersistStreamInit_GetSizeMax
(
IPersistStreamInit
*
iface
,
ULARGE_INTEGER
*
pcbSize
)
{
FIXME
(
"(%p,%p), stub!
\n
"
,
iface
,
pcbSize
);
return
E_FAIL
;
}
static
HRESULT
WINAPI
OLEFontImpl_IPersistStreamInit_InitNew
(
IPersistStreamInit
*
iface
)
{
FIXME
(
"(%p), stub!
\n
"
,
iface
);
return
S_OK
;
}
static
const
IPersistStreamInitVtbl
OLEFontImpl_IPersistStreamInit_VTable
=
{
OLEFontImpl_IPersistStreamInit_QueryInterface
,
OLEFontImpl_IPersistStreamInit_AddRef
,
OLEFontImpl_IPersistStreamInit_Release
,
OLEFontImpl_IPersistStreamInit_GetClassID
,
OLEFontImpl_IPersistStreamInit_IsDirty
,
OLEFontImpl_IPersistStreamInit_Load
,
OLEFontImpl_IPersistStreamInit_Save
,
OLEFontImpl_IPersistStreamInit_GetSizeMax
,
OLEFontImpl_IPersistStreamInit_InitNew
};
/************************************************************************
* OLEFontImpl_Construct
*
* This method will construct a new instance of the OLEFontImpl
...
...
@@ -2159,7 +2069,6 @@ static OLEFontImpl* OLEFontImpl_Construct(const FONTDESC *fontDesc)
newObject
->
IPersistStream_iface
.
lpVtbl
=
&
OLEFontImpl_IPersistStream_VTable
;
newObject
->
IConnectionPointContainer_iface
.
lpVtbl
=
&
OLEFontImpl_IConnectionPointContainer_VTable
;
newObject
->
IPersistPropertyBag_iface
.
lpVtbl
=
&
OLEFontImpl_IPersistPropertyBag_VTable
;
newObject
->
IPersistStreamInit_iface
.
lpVtbl
=
&
OLEFontImpl_IPersistStreamInit_VTable
;
newObject
->
ref
=
1
;
...
...
dlls/oleaut32/tests/olefont.c
View file @
12bc7c0a
...
...
@@ -188,6 +188,7 @@ static void test_QueryInterface(void)
LPVOID
pvObj
=
NULL
;
HRESULT
hr
;
IFont
*
font
=
NULL
;
IPersistStreamInit
*
persistStreamInit
=
NULL
;
LONG
ref
;
hr
=
pOleCreateFontIndirect
(
NULL
,
&
IID_IFont
,
NULL
);
...
...
@@ -212,6 +213,10 @@ static void test_QueryInterface(void)
ok
(
pvObj
!=
NULL
,
"IFont_QI does return NULL, instead of a ptr
\n
"
);
/* IFont never had IPersistStreamInit */
hr
=
IFont_QueryInterface
(
font
,
&
IID_IPersistStreamInit
,
(
void
**
)
&
persistStreamInit
);
EXPECT_HR
(
hr
,
E_NOINTERFACE
);
IFont_Release
(
font
);
IFont_Release
(
font
);
}
...
...
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