Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
aa591dcd
Commit
aa591dcd
authored
Aug 01, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devenum: COM cleanup for the IClassFactory iface.
parent
2cfc711a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
17 deletions
+10
-17
devenum_main.c
dlls/devenum/devenum_main.c
+1
-1
devenum_private.h
dlls/devenum/devenum_private.h
+1
-1
factory.c
dlls/devenum/factory.c
+8
-15
No files found.
dlls/devenum/devenum_main.c
View file @
aa591dcd
...
...
@@ -75,7 +75,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
* Oh well - works just fine as it is */
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_SystemDeviceEnum
)
||
IsEqualGUID
(
rclsid
,
&
CLSID_CDeviceMoniker
))
return
IClassFactory_QueryInterface
(
(
IClassFactory
*
)
&
DEVENUM_ClassFactory
,
iid
,
ppv
);
return
IClassFactory_QueryInterface
(
&
DEVENUM_ClassFactory
.
IClassFactory_iface
,
iid
,
ppv
);
FIXME
(
"CLSID: %s, IID: %s
\n
"
,
debugstr_guid
(
rclsid
),
debugstr_guid
(
iid
));
return
CLASS_E_CLASSNOTAVAILABLE
;
...
...
dlls/devenum/devenum_private.h
View file @
aa591dcd
...
...
@@ -57,7 +57,7 @@ static inline void DEVENUM_UnlockModule(void) { InterlockedDecrement(&dll_refs);
*/
typedef
struct
{
const
IClassFactoryVtbl
*
lpVtbl
;
IClassFactory
IClassFactory_iface
;
}
ClassFactoryImpl
;
typedef
struct
...
...
dlls/devenum/factory.c
View file @
aa591dcd
...
...
@@ -28,10 +28,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(devenum);
/**********************************************************************
* DEVENUM_IClassFactory_QueryInterface (also IUnknown)
*/
static
HRESULT
WINAPI
DEVENUM_IClassFactory_QueryInterface
(
LPCLASSFACTORY
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
static
HRESULT
WINAPI
DEVENUM_IClassFactory_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
void
**
ppvObj
)
{
TRACE
(
"
\n\t
IID:
\t
%s
\n
"
,
debugstr_guid
(
riid
));
...
...
@@ -56,7 +54,7 @@ static HRESULT WINAPI DEVENUM_IClassFactory_QueryInterface(
/**********************************************************************
* DEVENUM_IClassFactory_AddRef (also IUnknown)
*/
static
ULONG
WINAPI
DEVENUM_IClassFactory_AddRef
(
LPCLASSFACTORY
iface
)
static
ULONG
WINAPI
DEVENUM_IClassFactory_AddRef
(
IClassFactory
*
iface
)
{
TRACE
(
"
\n
"
);
...
...
@@ -68,7 +66,7 @@ static ULONG WINAPI DEVENUM_IClassFactory_AddRef(LPCLASSFACTORY iface)
/**********************************************************************
* DEVENUM_IClassFactory_Release (also IUnknown)
*/
static
ULONG
WINAPI
DEVENUM_IClassFactory_Release
(
LPCLASSFACTORY
iface
)
static
ULONG
WINAPI
DEVENUM_IClassFactory_Release
(
IClassFactory
*
iface
)
{
TRACE
(
"
\n
"
);
...
...
@@ -80,11 +78,8 @@ static ULONG WINAPI DEVENUM_IClassFactory_Release(LPCLASSFACTORY iface)
/**********************************************************************
* DEVENUM_IClassFactory_CreateInstance
*/
static
HRESULT
WINAPI
DEVENUM_IClassFactory_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppvObj
)
static
HRESULT
WINAPI
DEVENUM_IClassFactory_CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
pUnkOuter
,
REFIID
riid
,
void
**
ppvObj
)
{
TRACE
(
"
\n\t
IID:
\t
%s
\n
"
,
debugstr_guid
(
riid
));
...
...
@@ -110,9 +105,7 @@ static HRESULT WINAPI DEVENUM_IClassFactory_CreateInstance(
/**********************************************************************
* DEVENUM_IClassFactory_LockServer
*/
static
HRESULT
WINAPI
DEVENUM_IClassFactory_LockServer
(
LPCLASSFACTORY
iface
,
BOOL
fLock
)
static
HRESULT
WINAPI
DEVENUM_IClassFactory_LockServer
(
IClassFactory
*
iface
,
BOOL
fLock
)
{
TRACE
(
"
\n
"
);
...
...
@@ -138,4 +131,4 @@ static const IClassFactoryVtbl IClassFactory_Vtbl =
/**********************************************************************
* static ClassFactory instance
*/
ClassFactoryImpl
DEVENUM_ClassFactory
=
{
&
IClassFactory_Vtbl
};
ClassFactoryImpl
DEVENUM_ClassFactory
=
{
{
&
IClassFactory_Vtbl
}
};
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