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
dba4428b
Commit
dba4428b
authored
Jun 07, 2019
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jun 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Trace reference count in a consistent way.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e29effc6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
device.c
dlls/dinput/device.c
+4
-2
dinput_main.c
dlls/dinput/dinput_main.c
+2
-2
effect_linuxinput.c
dlls/dinput/effect_linuxinput.c
+5
-1
No files found.
dlls/dinput/device.c
View file @
dba4428b
...
@@ -1140,7 +1140,7 @@ ULONG WINAPI IDirectInputDevice2WImpl_Release(LPDIRECTINPUTDEVICE8W iface)
...
@@ -1140,7 +1140,7 @@ ULONG WINAPI IDirectInputDevice2WImpl_Release(LPDIRECTINPUTDEVICE8W iface)
IDirectInputDeviceImpl
*
This
=
impl_from_IDirectInputDevice8W
(
iface
);
IDirectInputDeviceImpl
*
This
=
impl_from_IDirectInputDevice8W
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
(
This
->
ref
));
ULONG
ref
=
InterlockedDecrement
(
&
(
This
->
ref
));
TRACE
(
"(%p) re
leasing from %d
\n
"
,
This
,
ref
+
1
);
TRACE
(
"(%p) re
f %d
\n
"
,
This
,
ref
);
if
(
ref
)
return
ref
;
if
(
ref
)
return
ref
;
...
@@ -1215,7 +1215,9 @@ HRESULT WINAPI IDirectInputDevice2AImpl_QueryInterface(LPDIRECTINPUTDEVICE8A ifa
...
@@ -1215,7 +1215,9 @@ HRESULT WINAPI IDirectInputDevice2AImpl_QueryInterface(LPDIRECTINPUTDEVICE8A ifa
ULONG
WINAPI
IDirectInputDevice2WImpl_AddRef
(
LPDIRECTINPUTDEVICE8W
iface
)
ULONG
WINAPI
IDirectInputDevice2WImpl_AddRef
(
LPDIRECTINPUTDEVICE8W
iface
)
{
{
IDirectInputDeviceImpl
*
This
=
impl_from_IDirectInputDevice8W
(
iface
);
IDirectInputDeviceImpl
*
This
=
impl_from_IDirectInputDevice8W
(
iface
);
return
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref %d
\n
"
,
This
,
ref
);
return
ref
;
}
}
ULONG
WINAPI
IDirectInputDevice2AImpl_AddRef
(
LPDIRECTINPUTDEVICE8A
iface
)
ULONG
WINAPI
IDirectInputDevice2AImpl_AddRef
(
LPDIRECTINPUTDEVICE8A
iface
)
...
...
dlls/dinput/dinput_main.c
View file @
dba4428b
...
@@ -527,7 +527,7 @@ static ULONG WINAPI IDirectInputAImpl_AddRef(LPDIRECTINPUT7A iface)
...
@@ -527,7 +527,7 @@ static ULONG WINAPI IDirectInputAImpl_AddRef(LPDIRECTINPUT7A iface)
IDirectInputImpl
*
This
=
impl_from_IDirectInput7A
(
iface
);
IDirectInputImpl
*
This
=
impl_from_IDirectInput7A
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)
incrementing from %d
\n
"
,
This
,
ref
-
1
);
TRACE
(
"(%p)
ref %d
\n
"
,
This
,
ref
);
return
ref
;
return
ref
;
}
}
...
@@ -542,7 +542,7 @@ static ULONG WINAPI IDirectInputAImpl_Release(LPDIRECTINPUT7A iface)
...
@@ -542,7 +542,7 @@ static ULONG WINAPI IDirectInputAImpl_Release(LPDIRECTINPUT7A iface)
IDirectInputImpl
*
This
=
impl_from_IDirectInput7A
(
iface
);
IDirectInputImpl
*
This
=
impl_from_IDirectInput7A
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) re
leasing from %d
\n
"
,
This
,
ref
+
1
);
TRACE
(
"(%p) re
f %d
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
if
(
ref
==
0
)
{
{
...
...
dlls/dinput/effect_linuxinput.c
View file @
dba4428b
...
@@ -167,7 +167,9 @@ static ULONG WINAPI LinuxInputEffectImpl_AddRef(
...
@@ -167,7 +167,9 @@ static ULONG WINAPI LinuxInputEffectImpl_AddRef(
LPDIRECTINPUTEFFECT
iface
)
LPDIRECTINPUTEFFECT
iface
)
{
{
LinuxInputEffectImpl
*
This
=
impl_from_IDirectInputEffect
(
iface
);
LinuxInputEffectImpl
*
This
=
impl_from_IDirectInputEffect
(
iface
);
return
InterlockedIncrement
(
&
(
This
->
ref
));
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref %d
\n
"
,
This
,
ref
);
return
ref
;
}
}
static
HRESULT
WINAPI
LinuxInputEffectImpl_Download
(
static
HRESULT
WINAPI
LinuxInputEffectImpl_Download
(
...
@@ -759,6 +761,8 @@ static ULONG WINAPI LinuxInputEffectImpl_Release(LPDIRECTINPUTEFFECT iface)
...
@@ -759,6 +761,8 @@ static ULONG WINAPI LinuxInputEffectImpl_Release(LPDIRECTINPUTEFFECT iface)
LinuxInputEffectImpl
*
This
=
impl_from_IDirectInputEffect
(
iface
);
LinuxInputEffectImpl
*
This
=
impl_from_IDirectInputEffect
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
(
This
->
ref
));
ULONG
ref
=
InterlockedDecrement
(
&
(
This
->
ref
));
TRACE
(
"(%p) ref %d
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
if
(
ref
==
0
)
{
{
LinuxInputEffectImpl_Stop
(
iface
);
LinuxInputEffectImpl_Stop
(
iface
);
...
...
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