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
65ff66a1
Commit
65ff66a1
authored
Dec 29, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Use an iface instead of a vtbl pointer in cf.
parent
33883536
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
inetcomm_main.c
dlls/inetcomm/inetcomm_main.c
+12
-12
No files found.
dlls/inetcomm/inetcomm_main.c
View file @
65ff66a1
...
...
@@ -72,13 +72,13 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
*/
typedef
struct
{
const
struct
IClassFactoryVtbl
*
lpVtbl
;
IClassFactory
IClassFactory_iface
;
HRESULT
(
*
create_object
)(
IUnknown
*
,
void
**
);
}
cf
;
static
inline
cf
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
return
(
cf
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
cf
,
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
cf
,
IClassFactory_iface
);
}
static
HRESULT
WINAPI
cf_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
...
...
@@ -141,11 +141,11 @@ static const struct IClassFactoryVtbl cf_vtbl =
cf_LockServer
};
static
cf
mime_body_cf
=
{
&
cf_vtbl
,
MimeBody_create
};
static
cf
mime_allocator_cf
=
{
&
cf_vtbl
,
MimeAllocator_create
};
static
cf
mime_message_cf
=
{
&
cf_vtbl
,
MimeMessage_create
};
static
cf
mime_security_cf
=
{
&
cf_vtbl
,
MimeSecurity_create
};
static
cf
virtual_stream_cf
=
{
&
cf_vtbl
,
VirtualStream_create
};
static
cf
mime_body_cf
=
{
{
&
cf_vtbl
}
,
MimeBody_create
};
static
cf
mime_allocator_cf
=
{
{
&
cf_vtbl
}
,
MimeAllocator_create
};
static
cf
mime_message_cf
=
{
{
&
cf_vtbl
}
,
MimeMessage_create
};
static
cf
mime_security_cf
=
{
{
&
cf_vtbl
}
,
MimeSecurity_create
};
static
cf
virtual_stream_cf
=
{
{
&
cf_vtbl
}
,
VirtualStream_create
};
/***********************************************************************
* DllGetClassObject (INETCOMM.@)
...
...
@@ -170,23 +170,23 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_IMimeSecurity
))
{
cf
=
(
IClassFactory
*
)
&
mime_security_cf
.
lpVtbl
;
cf
=
&
mime_security_cf
.
IClassFactory_iface
;
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_IMimeMessage
))
{
cf
=
(
IClassFactory
*
)
&
mime_message_cf
.
lpVtbl
;
cf
=
&
mime_message_cf
.
IClassFactory_iface
;
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_IMimeBody
))
{
cf
=
(
IClassFactory
*
)
&
mime_body_cf
.
lpVtbl
;
cf
=
&
mime_body_cf
.
IClassFactory_iface
;
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_IMimeAllocator
))
{
cf
=
(
IClassFactory
*
)
&
mime_allocator_cf
.
lpVtbl
;
cf
=
&
mime_allocator_cf
.
IClassFactory_iface
;
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_IVirtualStream
))
{
cf
=
(
IClassFactory
*
)
&
virtual_stream_cf
.
lpVtbl
;
cf
=
&
virtual_stream_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