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
271c6a6c
Commit
271c6a6c
authored
Oct 20, 2011
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Oct 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Add some logging to base class.
parent
6b59b052
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
device.c
dlls/dinput/device.c
+7
-2
No files found.
dlls/dinput/device.c
View file @
271c6a6c
...
...
@@ -783,6 +783,8 @@ HRESULT WINAPI IDirectInputDevice2WImpl_Acquire(LPDIRECTINPUTDEVICE8W iface)
IDirectInputDeviceImpl
*
This
=
impl_from_IDirectInputDevice8W
(
iface
);
HRESULT
res
;
TRACE
(
"(%p)
\n
"
,
This
);
if
(
!
This
->
data_format
.
user_df
)
return
DIERR_INVALIDPARAM
;
if
(
This
->
dwCoopLevel
&
DISCL_FOREGROUND
&&
This
->
win
!=
GetForegroundWindow
())
return
DIERR_OTHERAPPHASPRIO
;
...
...
@@ -813,6 +815,8 @@ HRESULT WINAPI IDirectInputDevice2WImpl_Unacquire(LPDIRECTINPUTDEVICE8W iface)
IDirectInputDeviceImpl
*
This
=
impl_from_IDirectInputDevice8W
(
iface
);
HRESULT
res
;
TRACE
(
"(%p)
\n
"
,
This
);
EnterCriticalSection
(
&
This
->
crit
);
res
=
!
This
->
acquired
?
DI_NOEFFECT
:
DI_OK
;
This
->
acquired
=
0
;
...
...
@@ -930,9 +934,10 @@ HRESULT WINAPI IDirectInputDevice2AImpl_SetEventNotification(LPDIRECTINPUTDEVICE
ULONG
WINAPI
IDirectInputDevice2WImpl_Release
(
LPDIRECTINPUTDEVICE8W
iface
)
{
IDirectInputDeviceImpl
*
This
=
impl_from_IDirectInputDevice8W
(
iface
);
ULONG
ref
;
ULONG
ref
=
InterlockedDecrement
(
&
(
This
->
ref
));
TRACE
(
"(%p) releasing from %d
\n
"
,
This
,
ref
+
1
);
ref
=
InterlockedDecrement
(
&
(
This
->
ref
));
if
(
ref
)
return
ref
;
IDirectInputDevice_Unacquire
(
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