dinput: Mouse device doesn't support property DIPROP_VIDPID.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Alistair Leslie-Hughes 2019-11-10 08:58:48 +00:00 committed by Alexandre Julliard
parent f10f98cfa2
commit d61d710121
2 changed files with 10 additions and 1 deletions

View File

@ -652,7 +652,8 @@ static HRESULT WINAPI SysMouseWImpl_GetProperty(LPDIRECTINPUTDEVICE8W iface, REF
break;
}
case (DWORD_PTR) DIPROP_VIDPID:
return DIERR_UNSUPPORTED;
default:
return IDirectInputDevice2WImpl_GetProperty(iface, rguid, pdiph);
}

View File

@ -198,6 +198,14 @@ static void test_acquire(IDirectInputA *pDI, HWND hwnd)
/* Granularity of Y axis should be 1! */
ok(hr == S_OK && di_op.dwData == 1, "GetProperty(): %08x, dwData: %i but should be 1.\n", hr, di_op.dwData);
memset(&di_op, 0, sizeof(di_op));
di_op.diph.dwSize = sizeof(DIPROPDWORD);
di_op.diph.dwHeaderSize = sizeof(DIPROPHEADER);
di_op.diph.dwHow = DIPH_DEVICE;
di_op.diph.dwObj = 0;
hr = IDirectInputDevice_GetProperty(pMouse, DIPROP_VIDPID, &di_op.diph);
ok(hr == DIERR_UNSUPPORTED, "got %08x\n", hr);
IUnknown_Release(pMouse);
DestroyWindow( hwnd2 );