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
1c0982e8
Commit
1c0982e8
authored
Dec 05, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Use an iface instead of a vtbl pointer in IClassFactoryImpl.
parent
ed5260ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
main.c
dlls/oledb32/main.c
+9
-4
No files found.
dlls/oledb32/main.c
View file @
1c0982e8
...
...
@@ -59,13 +59,18 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID lpv)
*/
typedef
struct
{
const
IClassFactoryVtbl
*
lpVtbl
;
IClassFactory
IClassFactory_iface
;
HRESULT
(
*
create_object
)(
IUnknown
*
,
LPVOID
*
);
}
cf
;
static
inline
cf
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
cf
,
IClassFactory_iface
);
}
static
HRESULT
WINAPI
CF_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
void
**
obj
)
{
cf
*
This
=
(
cf
*
)
iface
;
cf
*
This
=
impl_from_IClassFactory
(
iface
)
;
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
obj
);
...
...
@@ -91,7 +96,7 @@ static ULONG WINAPI CF_Release(IClassFactory *iface)
static
HRESULT
WINAPI
CF_CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
pOuter
,
REFIID
riid
,
void
**
obj
)
{
cf
*
This
=
(
cf
*
)
iface
;
cf
*
This
=
impl_from_IClassFactory
(
iface
)
;
IUnknown
*
unk
=
NULL
;
HRESULT
r
;
...
...
@@ -121,7 +126,7 @@ static const IClassFactoryVtbl CF_Vtbl =
CF_LockServer
};
static
cf
oledb_convert_cf
=
{
&
CF_Vtbl
,
create_oledb_convert
};
static
cf
oledb_convert_cf
=
{
{
&
CF_Vtbl
}
,
create_oledb_convert
};
/******************************************************************
* DllGetClassObject
...
...
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