dinput: Add more error checking to IDirectInput_GetDeviceStatus.