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
448986f1
Commit
448986f1
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 IParseDisplayName.
parent
91203006
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
24 deletions
+14
-24
devenum_private.h
dlls/devenum/devenum_private.h
+1
-1
parsedisplayname.c
dlls/devenum/parsedisplayname.c
+13
-23
No files found.
dlls/devenum/devenum_private.h
View file @
448986f1
...
...
@@ -67,7 +67,7 @@ typedef struct
typedef
struct
{
const
IParseDisplayNameVtbl
*
lpVtbl
;
IParseDisplayName
IParseDisplayName_iface
;
}
ParseDisplayNameImpl
;
typedef
struct
...
...
dlls/devenum/parsedisplayname.c
View file @
448986f1
...
...
@@ -27,31 +27,28 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
devenum
);
static
HRESULT
WINAPI
DEVENUM_IParseDisplayName_QueryInterface
(
LPPARSEDISPLAYNAME
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
static
HRESULT
WINAPI
DEVENUM_IParseDisplayName_QueryInterface
(
IParseDisplayName
*
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_IParseDisplayName
))
{
*
ppv
Obj
=
iface
;
IParseDisplayName_AddRef
(
iface
);
return
S_OK
;
*
ppv
=
iface
;
IParseDisplayName_AddRef
(
iface
);
return
S_OK
;
}
FIXME
(
"- no interface IID: %s
\n
"
,
debugstr_guid
(
riid
));
*
ppv
=
NULL
;
return
E_NOINTERFACE
;
}
/**********************************************************************
* DEVENUM_IParseDisplayName_AddRef (also IUnknown)
*/
static
ULONG
WINAPI
DEVENUM_IParseDisplayName_AddRef
(
LPPARSEDISPLAYNAME
iface
)
static
ULONG
WINAPI
DEVENUM_IParseDisplayName_AddRef
(
IParseDisplayName
*
iface
)
{
TRACE
(
"
\n
"
);
...
...
@@ -60,10 +57,7 @@ static ULONG WINAPI DEVENUM_IParseDisplayName_AddRef(LPPARSEDISPLAYNAME iface)
return
2
;
/* non-heap based object */
}
/**********************************************************************
* DEVENUM_IParseDisplayName_Release (also IUnknown)
*/
static
ULONG
WINAPI
DEVENUM_IParseDisplayName_Release
(
LPPARSEDISPLAYNAME
iface
)
static
ULONG
WINAPI
DEVENUM_IParseDisplayName_Release
(
IParseDisplayName
*
iface
)
{
TRACE
(
"
\n
"
);
...
...
@@ -81,12 +75,8 @@ static ULONG WINAPI DEVENUM_IParseDisplayName_Release(LPPARSEDISPLAYNAME iface)
* Might not handle more complicated strings properly (ie anything
* not in "@device:sw:{CLSID1}\<filter name or CLSID>" format
*/
static
HRESULT
WINAPI
DEVENUM_IParseDisplayName_ParseDisplayName
(
LPPARSEDISPLAYNAME
iface
,
IBindCtx
*
pbc
,
LPOLESTR
pszDisplayName
,
ULONG
*
pchEaten
,
IMoniker
**
ppmkOut
)
static
HRESULT
WINAPI
DEVENUM_IParseDisplayName_ParseDisplayName
(
IParseDisplayName
*
iface
,
IBindCtx
*
pbc
,
LPOLESTR
pszDisplayName
,
ULONG
*
pchEaten
,
IMoniker
**
ppmkOut
)
{
LPOLESTR
pszBetween
=
NULL
;
LPOLESTR
pszClass
=
NULL
;
...
...
@@ -163,4 +153,4 @@ static const IParseDisplayNameVtbl IParseDisplayName_Vtbl =
};
/* The one instance of this class */
ParseDisplayNameImpl
DEVENUM_ParseDisplayName
=
{
&
IParseDisplayName_Vtbl
};
ParseDisplayNameImpl
DEVENUM_ParseDisplayName
=
{
{
&
IParseDisplayName_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