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
1224bfaa
Commit
1224bfaa
authored
Sep 13, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Sep 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
joy.cpl: Use variable of correct type to store LSTATUS value.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2a5f05e3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.c
dlls/joy.cpl/main.c
+3
-3
No files found.
dlls/joy.cpl/main.c
View file @
1224bfaa
...
...
@@ -234,7 +234,7 @@ static void initialize_disabled_joysticks_list(HWND hwnd)
static
const
WCHAR
disabled_str
[]
=
{
'd'
,
'i'
,
's'
,
'a'
,
'b'
,
'l'
,
'e'
,
'd'
,
'\0'
};
HKEY
hkey
,
appkey
;
DWORD
values
=
0
;
HRESULT
hr
;
LSTATUS
status
;
DWORD
i
;
SendDlgItemMessageW
(
hwnd
,
IDC_DISABLEDLIST
,
LB_RESETCONTENT
,
0
,
0
);
...
...
@@ -248,9 +248,9 @@ static void initialize_disabled_joysticks_list(HWND hwnd)
DWORD
name_len
=
MAX_PATH
,
data_len
=
MAX_PATH
;
WCHAR
buf_name
[
MAX_PATH
+
9
],
buf_data
[
MAX_PATH
];
hr
=
RegEnumValueW
(
hkey
,
i
,
buf_name
,
&
name_len
,
NULL
,
NULL
,
(
BYTE
*
)
buf_data
,
&
data_len
);
status
=
RegEnumValueW
(
hkey
,
i
,
buf_name
,
&
name_len
,
NULL
,
NULL
,
(
BYTE
*
)
buf_data
,
&
data_len
);
if
(
SUCCEEDED
(
hr
)
&&
!
lstrcmpW
(
disabled_str
,
buf_data
))
if
(
status
==
ERROR_SUCCESS
&&
!
lstrcmpW
(
disabled_str
,
buf_data
))
SendDlgItemMessageW
(
hwnd
,
IDC_DISABLEDLIST
,
LB_ADDSTRING
,
0
,
(
LPARAM
)
buf_name
);
}
...
...
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