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
85e2aa1d
Commit
85e2aa1d
authored
Jul 05, 2008
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jul 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Add more traces. Prevent some traces from dereferencing NULL pointer.
parent
fa25f187
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
device.c
dlls/dinput/device.c
+1
-1
effect_linuxinput.c
dlls/dinput/effect_linuxinput.c
+3
-3
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+2
-0
No files found.
dlls/dinput/device.c
View file @
85e2aa1d
...
...
@@ -179,7 +179,7 @@ const char *_dump_dinput_GUID(const GUID *guid) {
return
guids
[
i
].
name
;
}
}
return
"Unknown GUID"
;
return
debugstr_guid
(
guid
)
;
}
void
_dump_DIDATAFORMAT
(
const
DIDATAFORMAT
*
df
)
{
...
...
dlls/dinput/effect_linuxinput.c
View file @
85e2aa1d
...
...
@@ -191,7 +191,7 @@ static void _dump_DIEFFECT(LPCDIEFFECT eff, REFGUID guid)
TRACE
(
" - dwTriggerRepeatInterval: %d
\n
"
,
eff
->
dwTriggerRepeatInterval
);
TRACE
(
" - cAxes: %d
\n
"
,
eff
->
cAxes
);
TRACE
(
" - rgdwAxes: %p
\n
"
,
eff
->
rgdwAxes
);
if
(
TRACE_ON
(
dinput
))
{
if
(
TRACE_ON
(
dinput
)
&&
eff
->
rgdwAxes
)
{
TRACE
(
" "
);
for
(
i
=
0
;
i
<
eff
->
cAxes
;
++
i
)
TRACE
(
"%d "
,
eff
->
rgdwAxes
[
i
]);
...
...
@@ -261,7 +261,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_Download(
if
(
errno
==
ENOMEM
)
{
return
DIERR_DEVICEFULL
;
}
else
{
FIXME
(
"Could not upload effect. Assuming a disconnected device.
\n
"
);
FIXME
(
"Could not upload effect. Assuming a disconnected device %d
\"
%s
\"
.
\n
"
,
*
This
->
fd
,
strerror
(
errno
)
);
return
DIERR_INPUTLOST
;
}
}
...
...
@@ -824,7 +824,7 @@ HRESULT linuxinput_create_effect(
HeapFree
(
GetProcessHeap
(),
0
,
newEffect
);
return
DIERR_INVALIDPARAM
;
default:
FIXME
(
"Unknown force type.
\n
"
);
FIXME
(
"Unknown force type 0x%x.
\n
"
,
type
);
HeapFree
(
GetProcessHeap
(),
0
,
newEffect
);
return
DIERR_INVALIDPARAM
;
}
...
...
dlls/dinput/joystick_linuxinput.c
View file @
85e2aa1d
...
...
@@ -637,6 +637,8 @@ static HRESULT WINAPI JoystickAImpl_Acquire(LPDIRECTINPUTDEVICE8A iface)
}
}
}
else
WARN
(
"Failed to acquire: %x
\n
"
,
res
);
return
res
;
}
...
...
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