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
f0bd3e69
Commit
f0bd3e69
authored
Jan 14, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
objsel: COM cleanup for the IDsObjectPicker iface.
parent
39e80379
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
objsel.c
dlls/objsel/objsel.c
+9
-4
objsel_private.h
dlls/objsel/objsel_private.h
+1
-1
No files found.
dlls/objsel/objsel.c
View file @
f0bd3e69
...
...
@@ -99,12 +99,17 @@ static VOID OBJSEL_IDsObjectPicker_Destroy(IDsObjectPickerImpl *This)
}
static
inline
IDsObjectPickerImpl
*
impl_from_IDsObjectPicker
(
IDsObjectPicker
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IDsObjectPickerImpl
,
IDsObjectPicker_iface
);
}
/**********************************************************************
* OBJSEL_IDsObjectPicker_AddRef (also IUnknown)
*/
static
ULONG
WINAPI
OBJSEL_IDsObjectPicker_AddRef
(
IDsObjectPicker
*
iface
)
{
IDsObjectPickerImpl
*
This
=
(
IDsObjectPickerImpl
*
)
iface
;
IDsObjectPickerImpl
*
This
=
impl_from_IDsObjectPicker
(
iface
)
;
ULONG
ref
;
TRACE
(
"
\n
"
);
...
...
@@ -127,7 +132,7 @@ static ULONG WINAPI OBJSEL_IDsObjectPicker_AddRef(IDsObjectPicker * iface)
*/
static
ULONG
WINAPI
OBJSEL_IDsObjectPicker_Release
(
IDsObjectPicker
*
iface
)
{
IDsObjectPickerImpl
*
This
=
(
IDsObjectPickerImpl
*
)
iface
;
IDsObjectPickerImpl
*
This
=
impl_from_IDsObjectPicker
(
iface
)
;
ULONG
ref
;
TRACE
(
"
\n
"
);
...
...
@@ -219,8 +224,8 @@ HRESULT WINAPI OBJSEL_IDsObjectPicker_Create(LPVOID *ppvObj)
sizeof
(
IDsObjectPickerImpl
));
if
(
Instance
!=
NULL
)
{
Instance
->
lpVtbl
=
&
IDsObjectPicker_Vtbl
;
OBJSEL_IDsObjectPicker_AddRef
(
(
IDsObjectPicker
*
)
Instan
ce
);
Instance
->
IDsObjectPicker_iface
.
lpVtbl
=
&
IDsObjectPicker_Vtbl
;
OBJSEL_IDsObjectPicker_AddRef
(
&
Instance
->
IDsObjectPicker_ifa
ce
);
*
ppvObj
=
Instance
;
return
S_OK
;
...
...
dlls/objsel/objsel_private.h
View file @
f0bd3e69
...
...
@@ -55,7 +55,7 @@ typedef struct
typedef
struct
{
IDsObjectPicker
Vtbl
*
lpVtbl
;
IDsObjectPicker
IDsObjectPicker_iface
;
LONG
ref
;
}
IDsObjectPickerImpl
;
...
...
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