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
41dce7cf
Commit
41dce7cf
authored
Nov 29, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msimtf: Use an interface instance instead of a vtbl pointer.
parent
ac256c73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
main.c
dlls/msimtf/main.c
+8
-3
No files found.
dlls/msimtf/main.c
View file @
41dce7cf
...
...
@@ -60,11 +60,16 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
}
typedef
struct
{
const
IClassFactoryVtbl
*
lpClassFactoryVtbl
;
IClassFactory
IClassFactory_iface
;
HRESULT
(
*
cf
)(
IUnknown
*
,
IUnknown
**
);
}
ClassFactory
;
static
inline
ClassFactory
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ClassFactory
,
IClassFactory_iface
);
}
static
HRESULT
WINAPI
ClassFactory_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
...
...
@@ -100,7 +105,7 @@ static ULONG WINAPI ClassFactory_Release(IClassFactory *iface)
static
HRESULT
WINAPI
ClassFactory_CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
pOuter
,
REFIID
riid
,
void
**
ppv
)
{
ClassFactory
*
This
=
(
ClassFactory
*
)
iface
;
ClassFactory
*
This
=
impl_from_IClassFactory
(
iface
)
;
HRESULT
ret
;
IUnknown
*
obj
;
TRACE
(
"(%p, %p, %s, %p)
\n
"
,
iface
,
pOuter
,
debugstr_guid
(
riid
),
ppv
);
...
...
@@ -135,7 +140,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
{
if
(
IsEqualGUID
(
&
CLSID_CActiveIMM
,
rclsid
))
{
static
ClassFactory
cf
=
{
&
ClassFactoryVtbl
,
{
&
ClassFactoryVtbl
}
,
ActiveIMMApp_Constructor
,
};
...
...
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