Commit d61d7101 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

dinput: Mouse device doesn't support property DIPROP_VIDPID.

parent f10f98cf
......@@ -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 );
......
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