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
4f382430
Commit
4f382430
authored
Mar 11, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: COM cleanup for the ITaskbarList iface.
parent
98281236
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
taskbarlist.c
dlls/shdocvw/taskbarlist.c
+10
-5
No files found.
dlls/shdocvw/taskbarlist.c
View file @
4f382430
...
@@ -27,10 +27,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
...
@@ -27,10 +27,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
struct
taskbar_list
struct
taskbar_list
{
{
const
struct
ITaskbarListVtbl
*
lpVtbl
;
ITaskbarList
ITaskbarList_iface
;
LONG
refcount
;
LONG
refcount
;
};
};
static
inline
struct
taskbar_list
*
impl_from_ITaskbarList
(
ITaskbarList
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
taskbar_list
,
ITaskbarList_iface
);
}
/* IUnknown methods */
/* IUnknown methods */
static
HRESULT
STDMETHODCALLTYPE
taskbar_list_QueryInterface
(
ITaskbarList
*
iface
,
REFIID
riid
,
void
**
object
)
static
HRESULT
STDMETHODCALLTYPE
taskbar_list_QueryInterface
(
ITaskbarList
*
iface
,
REFIID
riid
,
void
**
object
)
...
@@ -53,7 +58,7 @@ static HRESULT STDMETHODCALLTYPE taskbar_list_QueryInterface(ITaskbarList *iface
...
@@ -53,7 +58,7 @@ static HRESULT STDMETHODCALLTYPE taskbar_list_QueryInterface(ITaskbarList *iface
static
ULONG
STDMETHODCALLTYPE
taskbar_list_AddRef
(
ITaskbarList
*
iface
)
static
ULONG
STDMETHODCALLTYPE
taskbar_list_AddRef
(
ITaskbarList
*
iface
)
{
{
struct
taskbar_list
*
This
=
(
struct
taskbar_list
*
)
iface
;
struct
taskbar_list
*
This
=
impl_from_ITaskbarList
(
iface
)
;
ULONG
refcount
=
InterlockedIncrement
(
&
This
->
refcount
);
ULONG
refcount
=
InterlockedIncrement
(
&
This
->
refcount
);
TRACE
(
"%p increasing refcount to %u
\n
"
,
This
,
refcount
);
TRACE
(
"%p increasing refcount to %u
\n
"
,
This
,
refcount
);
...
@@ -63,7 +68,7 @@ static ULONG STDMETHODCALLTYPE taskbar_list_AddRef(ITaskbarList *iface)
...
@@ -63,7 +68,7 @@ static ULONG STDMETHODCALLTYPE taskbar_list_AddRef(ITaskbarList *iface)
static
ULONG
STDMETHODCALLTYPE
taskbar_list_Release
(
ITaskbarList
*
iface
)
static
ULONG
STDMETHODCALLTYPE
taskbar_list_Release
(
ITaskbarList
*
iface
)
{
{
struct
taskbar_list
*
This
=
(
struct
taskbar_list
*
)
iface
;
struct
taskbar_list
*
This
=
impl_from_ITaskbarList
(
iface
)
;
ULONG
refcount
=
InterlockedDecrement
(
&
This
->
refcount
);
ULONG
refcount
=
InterlockedDecrement
(
&
This
->
refcount
);
TRACE
(
"%p decreasing refcount to %u
\n
"
,
This
,
refcount
);
TRACE
(
"%p decreasing refcount to %u
\n
"
,
This
,
refcount
);
...
@@ -150,12 +155,12 @@ HRESULT TaskbarList_Create(IUnknown *outer, REFIID riid, void **taskbar_list)
...
@@ -150,12 +155,12 @@ HRESULT TaskbarList_Create(IUnknown *outer, REFIID riid, void **taskbar_list)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
}
}
object
->
lpVtbl
=
&
taskbar_list_vtbl
;
object
->
ITaskbarList_iface
.
lpVtbl
=
&
taskbar_list_vtbl
;
object
->
refcount
=
0
;
object
->
refcount
=
0
;
TRACE
(
"Created ITaskbarList %p
\n
"
,
object
);
TRACE
(
"Created ITaskbarList %p
\n
"
,
object
);
hr
=
ITaskbarList_QueryInterface
(
(
ITaskbarList
*
)
object
,
riid
,
taskbar_list
);
hr
=
ITaskbarList_QueryInterface
(
&
object
->
ITaskbarList_iface
,
riid
,
taskbar_list
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
{
{
HeapFree
(
GetProcessHeap
(),
0
,
object
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
...
...
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