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
1e40dea1
Commit
1e40dea1
authored
Apr 03, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Apr 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devenum: COM cleanup for ICreateDevEnum.
parent
9d541301
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
createdevenum.c
dlls/devenum/createdevenum.c
+9
-9
devenum_private.h
dlls/devenum/devenum_private.h
+1
-1
No files found.
dlls/devenum/createdevenum.c
View file @
1e40dea1
...
...
@@ -59,24 +59,24 @@ static HRESULT DEVENUM_CreateSpecialCategories(void);
/**********************************************************************
* DEVENUM_ICreateDevEnum_QueryInterface (also IUnknown)
*/
static
HRESULT
WINAPI
DEVENUM_ICreateDevEnum_QueryInterface
(
ICreateDevEnum
*
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
static
HRESULT
WINAPI
DEVENUM_ICreateDevEnum_QueryInterface
(
ICreateDevEnum
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
TRACE
(
"
\n\t
IID:
\t
%s
\n
"
,
debugstr_guid
(
riid
));
if
(
ppvObj
==
NULL
)
return
E_POINTER
;
if
(
!
ppv
)
return
E_POINTER
;
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_ICreateDevEnum
))
{
*
ppv
Obj
=
iface
;
*
ppv
=
iface
;
DEVENUM_ICreateDevEnum_AddRef
(
iface
);
return
S_OK
;
}
FIXME
(
"- no interface IID: %s
\n
"
,
debugstr_guid
(
riid
));
*
ppv
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
@@ -463,9 +463,9 @@ static HRESULT WINAPI DEVENUM_ICreateDevEnum_CreateClassEnumerator(
HKEY
hkey
;
HKEY
hbasekey
;
HRESULT
hr
;
CreateDevEnumImpl
*
This
=
(
CreateDevEnumImpl
*
)
iface
;
TRACE
(
"(%p)->(%s, %p, %x)
\n\t
DeviceClass:
\t
%s
\n
"
,
This
,
debugstr_guid
(
clsidDeviceClass
),
ppEnumMoniker
,
dwFlags
,
debugstr_guid
(
clsidDeviceClass
));
TRACE
(
"(%p)->(%s, %p, %x)
\n\t
DeviceClass:
\t
%s
\n
"
,
iface
,
debugstr_guid
(
clsidDeviceClass
),
ppEnumMoniker
,
dwFlags
,
debugstr_guid
(
clsidDeviceClass
));
if
(
!
ppEnumMoniker
)
return
E_POINTER
;
...
...
@@ -519,7 +519,7 @@ static const ICreateDevEnumVtbl ICreateDevEnum_Vtbl =
/**********************************************************************
* static CreateDevEnum instance
*/
CreateDevEnumImpl
DEVENUM_CreateDevEnum
=
{
&
ICreateDevEnum_Vtbl
};
CreateDevEnumImpl
DEVENUM_CreateDevEnum
=
{
{
&
ICreateDevEnum_Vtbl
}
};
/**********************************************************************
* DEVENUM_CreateAMCategoryKey (INTERNAL)
...
...
dlls/devenum/devenum_private.h
View file @
1e40dea1
...
...
@@ -62,7 +62,7 @@ typedef struct
typedef
struct
{
const
ICreateDevEnumVtbl
*
lpVtbl
;
ICreateDevEnum
ICreateDevEnum_iface
;
}
CreateDevEnumImpl
;
typedef
struct
...
...
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