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
3e2c44af
Commit
3e2c44af
authored
Mar 09, 2013
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
joy.cpl: Avoid signed-unsigned integer comparisons.
parent
956219b5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
main.c
dlls/joy.cpl/main.c
+7
-5
No files found.
dlls/joy.cpl/main.c
View file @
3e2c44af
...
@@ -233,7 +233,7 @@ static void initialize_disabled_joysticks_list(HWND hwnd)
...
@@ -233,7 +233,7 @@ static void initialize_disabled_joysticks_list(HWND hwnd)
HKEY
hkey
,
appkey
;
HKEY
hkey
,
appkey
;
DWORD
values
=
0
;
DWORD
values
=
0
;
HRESULT
hr
;
HRESULT
hr
;
int
i
;
DWORD
i
;
SendDlgItemMessageW
(
hwnd
,
IDC_DISABLEDLIST
,
LB_RESETCONTENT
,
0
,
0
);
SendDlgItemMessageW
(
hwnd
,
IDC_DISABLEDLIST
,
LB_RESETCONTENT
,
0
,
0
);
...
@@ -394,6 +394,8 @@ static DWORD WINAPI input_thread(void *param)
...
@@ -394,6 +394,8 @@ static DWORD WINAPI input_thread(void *param)
while
(
!
data
->
stop
)
while
(
!
data
->
stop
)
{
{
int
i
;
int
i
;
unsigned
int
j
;
poll_input
(
&
data
->
joysticks
[
data
->
chosen_joystick
],
&
state
);
poll_input
(
&
data
->
joysticks
[
data
->
chosen_joystick
],
&
state
);
dump_joy_state
(
&
state
,
data
->
joysticks
[
data
->
chosen_joystick
].
num_buttons
);
dump_joy_state
(
&
state
,
data
->
joysticks
[
data
->
chosen_joystick
].
num_buttons
);
...
@@ -412,12 +414,12 @@ static DWORD WINAPI input_thread(void *param)
...
@@ -412,12 +414,12 @@ static DWORD WINAPI input_thread(void *param)
axes_pos
[
2
][
1
]
=
state
.
lRz
;
axes_pos
[
2
][
1
]
=
state
.
lRz
;
/* Set pov values */
/* Set pov values */
for
(
i
=
0
;
i
<
sizeof
(
pov_val
)
/
sizeof
(
pov_val
[
0
]);
i
++
)
for
(
j
=
0
;
i
<
sizeof
(
pov_val
)
/
sizeof
(
pov_val
[
0
]);
j
++
)
{
{
if
(
state
.
rgdwPOV
[
0
]
==
pov_val
[
i
])
if
(
state
.
rgdwPOV
[
0
]
==
pov_val
[
j
])
{
{
axes_pos
[
3
][
0
]
=
pov_pos
[
i
][
0
];
axes_pos
[
3
][
0
]
=
pov_pos
[
j
][
0
];
axes_pos
[
3
][
1
]
=
pov_pos
[
i
][
1
];
axes_pos
[
3
][
1
]
=
pov_pos
[
j
][
1
];
}
}
}
}
...
...
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