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
6eecf488
Commit
6eecf488
authored
Jan 14, 2013
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Avoid signed-unsigned integer comparisons.
parent
47e9ffa7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
config.c
dlls/dinput/config.c
+1
-1
joystick.c
dlls/dinput/joystick.c
+2
-1
No files found.
dlls/dinput/config.c
View file @
6eecf488
...
...
@@ -331,7 +331,7 @@ static void assign_action(HWND dialog)
static
void
copy_actions
(
LPDIACTIONFORMATW
to
,
LPDIACTIONFORMATW
from
)
{
int
i
;
DWORD
i
;
for
(
i
=
0
;
i
<
from
->
dwNumActions
;
i
++
)
{
to
->
rgoAction
[
i
].
guidInstance
=
from
->
rgoAction
[
i
].
guidInstance
;
...
...
dlls/dinput/joystick.c
View file @
6eecf488
...
...
@@ -482,7 +482,8 @@ HRESULT WINAPI JoystickWGenericImpl_BuildActionMap(LPDIRECTINPUTDEVICE8W iface,
DWORD
dwFlags
)
{
JoystickGenericImpl
*
This
=
impl_from_IDirectInputDevice8W
(
iface
);
int
i
,
j
,
has_actions
=
0
;
unsigned
int
i
,
j
;
int
has_actions
=
0
;
DWORD
object_types
[]
=
{
DIDFT_AXIS
,
DIDFT_BUTTON
};
DWORD
type_map
[]
=
{
DIDFT_RELAXIS
,
DIDFT_PSHBUTTON
};
...
...
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