Commit be1ef8ed authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dinput: Always set the DIPROP_BUFFERSIZE property in SetActionMap.

parent 32b43d09
......@@ -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 );
......
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment