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
706d9df8
Commit
706d9df8
authored
Apr 10, 2012
by
Lucas Zawacki
Committed by
Alexandre Julliard
Apr 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Don't trace DIEFFECT members if they don't contain valid data.
parent
cde9a571
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
effect_linuxinput.c
dlls/dinput/effect_linuxinput.c
+19
-7
No files found.
dlls/dinput/effect_linuxinput.c
View file @
706d9df8
...
...
@@ -173,7 +173,7 @@ static void _dump_DICUSTOMFORCE(LPCDICUSTOMFORCE frc)
}
}
static
void
_dump_DIEFFECT
(
LPCDIEFFECT
eff
,
REFGUID
guid
)
static
void
_dump_DIEFFECT
(
LPCDIEFFECT
eff
,
REFGUID
guid
,
DWORD
dwFlags
)
{
unsigned
int
i
;
DWORD
type
=
_typeFromGUID
(
guid
);
...
...
@@ -188,26 +188,38 @@ static void _dump_DIEFFECT(LPCDIEFFECT eff, REFGUID guid)
_dump_DIEFFECT_flags
(
eff
->
dwFlags
);
TRACE
(
" - dwDuration: %d
\n
"
,
eff
->
dwDuration
);
TRACE
(
" - dwGain: %d
\n
"
,
eff
->
dwGain
);
if
(
eff
->
dwGain
>
10000
)
WARN
(
"dwGain is out of range (>10,000)
\n
"
);
TRACE
(
" - dwTriggerButton: %d
\n
"
,
eff
->
dwTriggerButton
);
TRACE
(
" - dwTriggerRepeatInterval: %d
\n
"
,
eff
->
dwTriggerRepeatInterval
);
TRACE
(
" - rglDirection: %p
\n
"
,
eff
->
rglDirection
);
TRACE
(
" - cbTypeSpecificParams: %d
\n
"
,
eff
->
cbTypeSpecificParams
);
TRACE
(
" - lpvTypeSpecificParams: %p
\n
"
,
eff
->
lpvTypeSpecificParams
);
/* Only trace some members if dwFlags indicates they have data */
if
(
dwFlags
&
DIEP_AXES
)
{
TRACE
(
" - cAxes: %d
\n
"
,
eff
->
cAxes
);
TRACE
(
" - rgdwAxes: %p
\n
"
,
eff
->
rgdwAxes
);
if
(
TRACE_ON
(
dinput
)
&&
eff
->
rgdwAxes
)
{
TRACE
(
" "
);
for
(
i
=
0
;
i
<
eff
->
cAxes
;
++
i
)
TRACE
(
"%d "
,
eff
->
rgdwAxes
[
i
]);
TRACE
(
"
\n
"
);
}
TRACE
(
" - rglDirection: %p
\n
"
,
eff
->
rglDirection
);
}
if
(
dwFlags
&
DIEP_ENVELOPE
)
{
TRACE
(
" - lpEnvelope: %p
\n
"
,
eff
->
lpEnvelope
);
TRACE
(
" - cbTypeSpecificParams: %d
\n
"
,
eff
->
cbTypeSpecificParams
);
TRACE
(
" - lpvTypeSpecificParams: %p
\n
"
,
eff
->
lpvTypeSpecificParams
);
if
(
eff
->
dwSize
>
sizeof
(
DIEFFECT_DX5
))
TRACE
(
" - dwStartDelay: %d
\n
"
,
eff
->
dwStartDelay
);
if
(
eff
->
lpEnvelope
!=
NULL
)
_dump_DIENVELOPE
(
eff
->
lpEnvelope
);
}
if
(
eff
->
dwSize
>
sizeof
(
DIEFFECT_DX5
))
TRACE
(
" - dwStartDelay: %d
\n
"
,
eff
->
dwStartDelay
);
if
(
type
==
DIEFT_CONSTANTFORCE
)
{
if
(
eff
->
cbTypeSpecificParams
!=
sizeof
(
DICONSTANTFORCE
))
{
WARN
(
"Effect claims to be a constant force but the type-specific params are the wrong size!
\n
"
);
...
...
@@ -539,7 +551,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_SetParameters(
TRACE
(
"(this=%p,%p,%d)
\n
"
,
This
,
peff
,
dwFlags
);
_dump_DIEFFECT
(
peff
,
&
This
->
guid
);
_dump_DIEFFECT
(
peff
,
&
This
->
guid
,
dwFlags
);
if
((
dwFlags
&
~
DIEP_NORESTART
&
~
DIEP_NODOWNLOAD
&
~
DIEP_START
)
==
0
)
{
/* set everything */
...
...
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