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
09019ba7
Commit
09019ba7
authored
Dec 15, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use an iface instead of an vtbl pointer in IClassFactoryImpl.
parent
5ce81a9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
msi_main.c
dlls/msi/msi_main.c
+11
-6
No files found.
dlls/msi/msi_main.c
View file @
09019ba7
...
...
@@ -118,14 +118,19 @@ ITypeLib *get_msi_typelib( LPWSTR *path )
}
typedef
struct
tagIClassFactoryImpl
{
const
IClassFactoryVtbl
*
lpVtbl
;
IClassFactory
IClassFactory_iface
;
HRESULT
(
*
create_object
)(
IUnknown
*
,
LPVOID
*
);
}
IClassFactoryImpl
;
static
inline
IClassFactoryImpl
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IClassFactoryImpl
,
IClassFactory_iface
);
}
static
HRESULT
WINAPI
MsiCF_QueryInterface
(
LPCLASSFACTORY
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
IClassFactoryImpl
*
This
=
impl_from_IClassFactory
(
iface
)
;
TRACE
(
"%p %s %p
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
...
...
@@ -154,7 +159,7 @@ static ULONG WINAPI MsiCF_Release(LPCLASSFACTORY iface)
static
HRESULT
WINAPI
MsiCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
IClassFactoryImpl
*
This
=
impl_from_IClassFactory
(
iface
)
;
IUnknown
*
unk
=
NULL
;
HRESULT
r
;
...
...
@@ -190,9 +195,9 @@ static const IClassFactoryVtbl MsiCF_Vtbl =
MsiCF_LockServer
};
static
IClassFactoryImpl
MsiServer_CF
=
{
&
MsiCF_Vtbl
,
create_msiserver
};
static
IClassFactoryImpl
WineMsiCustomRemote_CF
=
{
&
MsiCF_Vtbl
,
create_msi_custom_remote
};
static
IClassFactoryImpl
WineMsiRemotePackage_CF
=
{
&
MsiCF_Vtbl
,
create_msi_remote_package
};
static
IClassFactoryImpl
MsiServer_CF
=
{
{
&
MsiCF_Vtbl
}
,
create_msiserver
};
static
IClassFactoryImpl
WineMsiCustomRemote_CF
=
{
{
&
MsiCF_Vtbl
}
,
create_msi_custom_remote
};
static
IClassFactoryImpl
WineMsiRemotePackage_CF
=
{
{
&
MsiCF_Vtbl
}
,
create_msi_remote_package
};
/******************************************************************
* DllGetClassObject [MSI.@]
...
...
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