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
751a4fe9
Commit
751a4fe9
authored
Dec 05, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
infosoft: Use an iface instead of a vtbl pointer in IClassFactoryImpl.
parent
f4f05ff9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
infosoft_main.c
dlls/infosoft/infosoft_main.c
+10
-5
No files found.
dlls/infosoft/infosoft_main.c
View file @
751a4fe9
...
@@ -60,14 +60,19 @@ typedef HRESULT (CALLBACK *LPFNCREATEINSTANCE)(IUnknown*, REFIID, LPVOID*);
...
@@ -60,14 +60,19 @@ typedef HRESULT (CALLBACK *LPFNCREATEINSTANCE)(IUnknown*, REFIID, LPVOID*);
typedef
struct
typedef
struct
{
{
const
IClassFactoryVtbl
*
lpVtbl
;
IClassFactory
IClassFactory_iface
;
LPFNCREATEINSTANCE
lpfnCI
;
LPFNCREATEINSTANCE
lpfnCI
;
}
CFImpl
;
}
CFImpl
;
static
inline
CFImpl
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
CFImpl
,
IClassFactory_iface
);
}
static
HRESULT
WINAPI
infosoftcf_fnQueryInterface
(
LPCLASSFACTORY
iface
,
static
HRESULT
WINAPI
infosoftcf_fnQueryInterface
(
LPCLASSFACTORY
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
REFIID
riid
,
LPVOID
*
ppvObj
)
{
{
CFImpl
*
This
=
(
CFImpl
*
)
iface
;
CFImpl
*
This
=
impl_from_IClassFactory
(
iface
)
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_guid
(
riid
));
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_guid
(
riid
));
...
@@ -97,7 +102,7 @@ static ULONG WINAPI infosoftcf_fnRelease(LPCLASSFACTORY iface)
...
@@ -97,7 +102,7 @@ static ULONG WINAPI infosoftcf_fnRelease(LPCLASSFACTORY iface)
static
HRESULT
WINAPI
infosoftcf_fnCreateInstance
(
LPCLASSFACTORY
iface
,
static
HRESULT
WINAPI
infosoftcf_fnCreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppvObject
)
LPUNKNOWN
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppvObject
)
{
{
CFImpl
*
This
=
(
CFImpl
*
)
iface
;
CFImpl
*
This
=
impl_from_IClassFactory
(
iface
)
;
TRACE
(
"%p->(%p,%s,%p)
\n
"
,
This
,
pUnkOuter
,
debugstr_guid
(
riid
),
ppvObject
);
TRACE
(
"%p->(%p,%s,%p)
\n
"
,
This
,
pUnkOuter
,
debugstr_guid
(
riid
),
ppvObject
);
...
@@ -121,7 +126,7 @@ static const IClassFactoryVtbl infosoft_cfvt =
...
@@ -121,7 +126,7 @@ static const IClassFactoryVtbl infosoft_cfvt =
infosoftcf_fnLockServer
infosoftcf_fnLockServer
};
};
static
CFImpl
wb_cf
=
{
&
infosoft_cfvt
,
wb_Constructor
};
static
CFImpl
wb_cf
=
{
{
&
infosoft_cfvt
}
,
wb_Constructor
};
/***********************************************************************
/***********************************************************************
* DllGetClassObject (INFOSOFT.@)
* DllGetClassObject (INFOSOFT.@)
...
@@ -137,7 +142,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
...
@@ -137,7 +142,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
*
ppv
=
NULL
;
*
ppv
=
NULL
;
if
(
IsEqualIID
(
rclsid
,
&
CLSID_wb_Neutral
))
if
(
IsEqualIID
(
rclsid
,
&
CLSID_wb_Neutral
))
pcf
=
(
IClassFactory
*
)
&
wb_cf
;
pcf
=
&
wb_cf
.
IClassFactory_iface
;
else
else
return
CLASS_E_CLASSNOTAVAILABLE
;
return
CLASS_E_CLASSNOTAVAILABLE
;
...
...
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