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
aa9aace5
Commit
aa9aace5
authored
Jul 10, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Use nameless unions/structs.
parent
c86bb606
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
config.c
dlls/dinput/config.c
+3
-5
dinput_main.c
dlls/dinput/dinput_main.c
+0
-2
No files found.
dlls/dinput/config.c
View file @
aa9aace5
...
...
@@ -16,8 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define NONAMELESSUNION
#include "objbase.h"
#include "dinput_private.h"
...
...
@@ -138,7 +136,7 @@ static void lv_set_action(HWND dialog, int item, int action, LPDIACTIONFORMATW l
if
(
item
<
0
)
return
;
if
(
action
!=
-
1
)
action_text
=
lpdiaf
->
rgoAction
[
action
].
u
.
lptszActionName
;
action_text
=
lpdiaf
->
rgoAction
[
action
].
lptszActionName
;
/* Keep the action and text in the listview item */
lvItem
.
iItem
=
item
;
...
...
@@ -280,7 +278,7 @@ static void show_suitable_actions(HWND dialog)
/* Add action string and index in the action format to the list entry */
if
(
DIDFT_GETINSTANCE
(
lpdiaf
->
rgoAction
[
i
].
dwSemantic
)
&
DIDFT_GETTYPE
(
device
->
ddo
[
obj
].
dwType
))
{
SendDlgItemMessageW
(
dialog
,
IDC_ACTIONLIST
,
LB_ADDSTRING
,
0
,
(
LPARAM
)
lpdiaf
->
rgoAction
[
i
].
u
.
lptszActionName
);
SendDlgItemMessageW
(
dialog
,
IDC_ACTIONLIST
,
LB_ADDSTRING
,
0
,
(
LPARAM
)
lpdiaf
->
rgoAction
[
i
].
lptszActionName
);
SendDlgItemMessageW
(
dialog
,
IDC_ACTIONLIST
,
LB_SETITEMDATA
,
added
,
(
LPARAM
)
i
);
added
++
;
}
...
...
@@ -336,7 +334,7 @@ static void copy_actions(LPDIACTIONFORMATW to, LPDIACTIONFORMATW from)
to
->
rgoAction
[
i
].
guidInstance
=
from
->
rgoAction
[
i
].
guidInstance
;
to
->
rgoAction
[
i
].
dwObjID
=
from
->
rgoAction
[
i
].
dwObjID
;
to
->
rgoAction
[
i
].
dwHow
=
from
->
rgoAction
[
i
].
dwHow
;
to
->
rgoAction
[
i
].
u
.
lptszActionName
=
from
->
rgoAction
[
i
].
u
.
lptszActionName
;
to
->
rgoAction
[
i
].
lptszActionName
=
from
->
rgoAction
[
i
]
.
lptszActionName
;
}
}
...
...
dlls/dinput/dinput_main.c
View file @
aa9aace5
...
...
@@ -26,8 +26,6 @@
#include <string.h>
#define COBJMACROS
#define NONAMELESSUNION
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
...
...
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