Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f6eb03d6
Commit
f6eb03d6
authored
Jan 08, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Avoid size_t in traces.
parent
a0abde33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
effect_linuxinput.c
dlls/dinput/effect_linuxinput.c
+2
-4
joystick_linux.c
dlls/dinput/joystick_linux.c
+2
-6
No files found.
dlls/dinput/effect_linuxinput.c
View file @
f6eb03d6
...
@@ -119,8 +119,7 @@ static void _dump_DIEFFECT_flags(DWORD dwFlags)
...
@@ -119,8 +119,7 @@ static void _dump_DIEFFECT_flags(DWORD dwFlags)
static
void
_dump_DIENVELOPE
(
LPCDIENVELOPE
env
)
static
void
_dump_DIENVELOPE
(
LPCDIENVELOPE
env
)
{
{
if
(
env
->
dwSize
!=
sizeof
(
DIENVELOPE
))
{
if
(
env
->
dwSize
!=
sizeof
(
DIENVELOPE
))
{
WARN
(
"Non-standard DIENVELOPE structure size (%d instead of %d).
\n
"
,
WARN
(
"Non-standard DIENVELOPE structure size %d.
\n
"
,
env
->
dwSize
);
env
->
dwSize
,
sizeof
(
DIENVELOPE
));
}
}
TRACE
(
"Envelope has attack (level: %d time: %d), fade (level: %d time: %d)
\n
"
,
TRACE
(
"Envelope has attack (level: %d time: %d), fade (level: %d time: %d)
\n
"
,
env
->
dwAttackLevel
,
env
->
dwAttackTime
,
env
->
dwFadeLevel
,
env
->
dwFadeTime
);
env
->
dwAttackLevel
,
env
->
dwAttackTime
,
env
->
dwFadeLevel
,
env
->
dwFadeTime
);
...
@@ -175,8 +174,7 @@ static void _dump_DIEFFECT(LPCDIEFFECT eff, REFGUID guid)
...
@@ -175,8 +174,7 @@ static void _dump_DIEFFECT(LPCDIEFFECT eff, REFGUID guid)
TRACE
(
"Dumping DIEFFECT structure:
\n
"
);
TRACE
(
"Dumping DIEFFECT structure:
\n
"
);
TRACE
(
" - dwSize: %d
\n
"
,
eff
->
dwSize
);
TRACE
(
" - dwSize: %d
\n
"
,
eff
->
dwSize
);
if
((
eff
->
dwSize
!=
sizeof
(
DIEFFECT
))
&&
(
eff
->
dwSize
!=
sizeof
(
DIEFFECT_DX5
)))
{
if
((
eff
->
dwSize
!=
sizeof
(
DIEFFECT
))
&&
(
eff
->
dwSize
!=
sizeof
(
DIEFFECT_DX5
)))
{
WARN
(
"Non-standard DIEFFECT structure size (%d instead of %d or %d).
\n
"
,
WARN
(
"Non-standard DIEFFECT structure size %d
\n
"
,
eff
->
dwSize
);
eff
->
dwSize
,
sizeof
(
DIEFFECT
),
sizeof
(
DIEFFECT_DX5
));
}
}
TRACE
(
" - dwFlags: %d
\n
"
,
eff
->
dwFlags
);
TRACE
(
" - dwFlags: %d
\n
"
,
eff
->
dwFlags
);
TRACE
(
" "
);
TRACE
(
" "
);
...
...
dlls/dinput/joystick_linux.c
View file @
f6eb03d6
...
@@ -1026,9 +1026,7 @@ static HRESULT WINAPI JoystickAImpl_GetDeviceInfo(
...
@@ -1026,9 +1026,7 @@ static HRESULT WINAPI JoystickAImpl_GetDeviceInfo(
if
((
pdidi
->
dwSize
!=
sizeof
(
DIDEVICEINSTANCE_DX3A
))
&&
if
((
pdidi
->
dwSize
!=
sizeof
(
DIDEVICEINSTANCE_DX3A
))
&&
(
pdidi
->
dwSize
!=
sizeof
(
DIDEVICEINSTANCEA
)))
{
(
pdidi
->
dwSize
!=
sizeof
(
DIDEVICEINSTANCEA
)))
{
WARN
(
"invalid parameter: pdidi->dwSize = %d != %d or %d
\n
"
,
WARN
(
"invalid parameter: pdidi->dwSize = %d
\n
"
,
pdidi
->
dwSize
);
pdidi
->
dwSize
,
sizeof
(
DIDEVICEINSTANCE_DX3A
),
sizeof
(
DIDEVICEINSTANCEA
));
return
DIERR_INVALIDPARAM
;
return
DIERR_INVALIDPARAM
;
}
}
...
@@ -1061,9 +1059,7 @@ static HRESULT WINAPI JoystickWImpl_GetDeviceInfo(
...
@@ -1061,9 +1059,7 @@ static HRESULT WINAPI JoystickWImpl_GetDeviceInfo(
if
((
pdidi
->
dwSize
!=
sizeof
(
DIDEVICEINSTANCE_DX3W
))
&&
if
((
pdidi
->
dwSize
!=
sizeof
(
DIDEVICEINSTANCE_DX3W
))
&&
(
pdidi
->
dwSize
!=
sizeof
(
DIDEVICEINSTANCEW
)))
{
(
pdidi
->
dwSize
!=
sizeof
(
DIDEVICEINSTANCEW
)))
{
WARN
(
"invalid parameter: pdidi->dwSize = %d != %d or %d
\n
"
,
WARN
(
"invalid parameter: pdidi->dwSize = %d
\n
"
,
pdidi
->
dwSize
);
pdidi
->
dwSize
,
sizeof
(
DIDEVICEINSTANCE_DX3W
),
sizeof
(
DIDEVICEINSTANCEW
));
return
DIERR_INVALIDPARAM
;
return
DIERR_INVALIDPARAM
;
}
}
...
...
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