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
bae65282
Commit
bae65282
authored
Dec 29, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sti: Use an iface instead of a vtbl pointer in sti_cf.
parent
3dd2c0d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sti_main.c
dlls/sti/sti_main.c
+4
-4
No files found.
dlls/sti/sti_main.c
View file @
bae65282
...
...
@@ -43,13 +43,13 @@ typedef HRESULT (*fnCreateInstance)(REFIID riid, IUnknown *pUnkOuter, LPVOID *pp
typedef
struct
{
const
struct
IClassFactoryVtbl
*
vtbl
;
IClassFactory
IClassFactory_iface
;
fnCreateInstance
pfnCreateInstance
;
}
sti_cf
;
static
inline
sti_cf
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
return
(
sti_cf
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
sti_cf
,
vtbl
)
);
return
CONTAINING_RECORD
(
iface
,
sti_cf
,
IClassFactory_iface
);
}
static
HRESULT
sti_create
(
REFIID
riid
,
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
...
...
@@ -131,7 +131,7 @@ static const struct IClassFactoryVtbl sti_cf_vtbl =
sti_cf_LockServer
};
static
sti_cf
the_sti_cf
=
{
&
sti_cf_vtbl
,
sti_create
};
static
sti_cf
the_sti_cf
=
{
{
&
sti_cf_vtbl
}
,
sti_create
};
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
...
...
@@ -153,7 +153,7 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_Sti
))
{
cf
=
(
IClassFactory
*
)
&
the_sti_cf
.
vtbl
;
cf
=
&
the_sti_cf
.
IClassFactory_iface
;
}
if
(
cf
)
...
...
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