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
62cb1f8d
Commit
62cb1f8d
authored
Dec 07, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Improved tracing of IDictionary methods.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c84080fb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
dictionary.c
dlls/scrrun/dictionary.c
+15
-14
No files found.
dlls/scrrun/dictionary.c
View file @
62cb1f8d
...
...
@@ -240,19 +240,19 @@ static HRESULT WINAPI dict_enum_QueryInterface(IEnumVARIANT *iface, REFIID riid,
static
ULONG
WINAPI
dict_enum_AddRef
(
IEnumVARIANT
*
iface
)
{
struct
dictionary_enum
*
This
=
impl_from_IEnumVARIANT
(
iface
);
TRACE
(
"(%p)
\n
"
,
This
);
return
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(%u)
\n
"
,
This
,
ref
);
return
ref
;
}
static
ULONG
WINAPI
dict_enum_Release
(
IEnumVARIANT
*
iface
)
{
struct
dictionary_enum
*
This
=
impl_from_IEnumVARIANT
(
iface
);
LONG
ref
;
LONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
->(%u)
\n
"
,
This
,
ref
);
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
ref
==
0
)
{
if
(
!
ref
)
{
list_remove
(
&
This
->
notify
);
IDictionary_Release
(
&
This
->
dict
->
IDictionary_iface
);
heap_free
(
This
);
...
...
@@ -411,20 +411,21 @@ static HRESULT WINAPI dictionary_QueryInterface(IDictionary *iface, REFIID riid,
static
ULONG
WINAPI
dictionary_AddRef
(
IDictionary
*
iface
)
{
dictionary
*
This
=
impl_from_IDictionary
(
iface
);
TRACE
(
"(%p)
\n
"
,
This
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(%u)
\n
"
,
This
,
ref
);
return
ref
;
}
static
ULONG
WINAPI
dictionary_Release
(
IDictionary
*
iface
)
{
dictionary
*
This
=
impl_from_IDictionary
(
iface
);
LONG
ref
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
)
;
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
->(%u)
\n
"
,
This
,
ref
);
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
ref
==
0
)
{
if
(
!
ref
)
{
IDictionary_RemoveAll
(
iface
);
heap_free
(
This
);
}
...
...
@@ -436,7 +437,7 @@ static HRESULT WINAPI dictionary_GetTypeInfoCount(IDictionary *iface, UINT *pcti
{
dictionary
*
This
=
impl_from_IDictionary
(
iface
);
TRACE
(
"(%p)->(
)
\n
"
,
This
);
TRACE
(
"(%p)->(
%p)
\n
"
,
This
,
pctinfo
);
*
pctinfo
=
1
;
return
S_OK
;
...
...
@@ -885,7 +886,7 @@ HRESULT WINAPI Dictionary_CreateInstance(IClassFactory *factory,IUnknown *outer,
{
dictionary
*
This
;
TRACE
(
"(%p
)
\n
"
,
obj
);
TRACE
(
"(%p
, %p, %s, %p)
\n
"
,
factory
,
outer
,
debugstr_guid
(
riid
)
,
obj
);
*
obj
=
NULL
;
...
...
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