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>
This commit is contained in:
parent
f10f98cfa2
commit
d61d710121
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue