Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
70a1ce99
Commit
70a1ce99
authored
Jan 13, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wiaservc: COM cleanup for the IClassFactory iface.
parent
c3d28bae
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
factory.c
dlls/wiaservc/factory.c
+8
-3
service.c
dlls/wiaservc/service.c
+2
-3
wiaservc_private.h
dlls/wiaservc/wiaservc_private.h
+1
-1
No files found.
dlls/wiaservc/factory.c
View file @
70a1ce99
...
...
@@ -32,6 +32,11 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
wia
);
static
inline
ClassFactoryImpl
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ClassFactoryImpl
,
IClassFactory_iface
);
}
static
ULONG
WINAPI
WIASERVC_IClassFactory_AddRef
(
LPCLASSFACTORY
iface
)
{
...
...
@@ -42,11 +47,11 @@ static HRESULT WINAPI
WIASERVC_IClassFactory_QueryInterface
(
LPCLASSFACTORY
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
ClassFactoryImpl
*
This
=
(
ClassFactoryImpl
*
)
iface
;
ClassFactoryImpl
*
This
=
impl_from_IClassFactory
(
iface
)
;
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IClassFactory
))
{
*
ppvObj
=
&
This
->
lpVtbl
;
*
ppvObj
=
&
This
->
IClassFactory_iface
;
return
S_OK
;
}
...
...
@@ -99,5 +104,5 @@ static const IClassFactoryVtbl WIASERVC_IClassFactory_Vtbl =
ClassFactoryImpl
WIASERVC_ClassFactory
=
{
&
WIASERVC_IClassFactory_Vtbl
{
&
WIASERVC_IClassFactory_Vtbl
}
};
dlls/wiaservc/service.c
View file @
70a1ce99
...
...
@@ -95,9 +95,8 @@ StartCount(void)
return
FALSE
;
hr
=
CoRegisterClassObject
(
&
CLSID_WiaDevMgr
,
(
IUnknown
*
)
&
WIASERVC_ClassFactory
,
CLSCTX_LOCAL_SERVER
,
REGCLS_MULTIPLEUSE
,
&
dwReg
);
(
IUnknown
*
)
&
WIASERVC_ClassFactory
.
IClassFactory_iface
,
CLSCTX_LOCAL_SERVER
,
REGCLS_MULTIPLEUSE
,
&
dwReg
);
if
(
FAILED
(
hr
))
return
FALSE
;
...
...
dlls/wiaservc/wiaservc_private.h
View file @
70a1ce99
...
...
@@ -23,7 +23,7 @@
typedef
struct
{
const
IClassFactoryVtbl
*
lpVtbl
;
IClassFactory
IClassFactory_iface
;
}
ClassFactoryImpl
;
extern
ClassFactoryImpl
WIASERVC_ClassFactory
;
...
...
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