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
be1ef8ed
Commit
be1ef8ed
authored
Mar 18, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Always set the DIPROP_BUFFERSIZE property in SetActionMap.
parent
32b43d09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
device.c
dlls/dinput/device.c
+2
-2
joystick8.c
dlls/dinput/tests/joystick8.c
+0
-1
No files found.
dlls/dinput/device.c
View file @
be1ef8ed
...
...
@@ -2088,8 +2088,8 @@ static HRESULT WINAPI dinput_device_SetActionMap( IDirectInputDevice8W *iface, D
prop_range
.
lMax
=
format
->
lAxisMax
;
IDirectInputDevice8_SetProperty
(
iface
,
DIPROP_RANGE
,
&
prop_range
.
diph
);
if
((
prop_buffer
.
dwData
=
format
->
dwBufferSize
))
IDirectInputDevice8_SetProperty
(
iface
,
DIPROP_BUFFERSIZE
,
&
prop_buffer
.
diph
);
prop_buffer
.
dwData
=
format
->
dwBufferSize
;
IDirectInputDevice8_SetProperty
(
iface
,
DIPROP_BUFFERSIZE
,
&
prop_buffer
.
diph
);
if
(
username
==
NULL
)
GetUserNameW
(
username_buf
,
&
username_len
);
else
lstrcpynW
(
username_buf
,
username
,
MAX_PATH
);
...
...
dlls/dinput/tests/joystick8.c
View file @
be1ef8ed
...
...
@@ -941,7 +941,6 @@ static void test_action_map( IDirectInputDevice8W *device, HANDLE file, HANDLE e
hr
=
IDirectInputDevice8_GetProperty
(
device
,
DIPROP_BUFFERSIZE
,
&
prop_dword
.
diph
);
ok
(
hr
==
DI_OK
,
"GetProperty returned %#lx
\n
"
,
hr
);
todo_wine
ok
(
prop_dword
.
dwData
==
0
,
"got dwData %#lx
\n
"
,
prop_dword
.
dwData
);
...
...
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