From 4979d287b29a90b8fc590537fef146e4f726899e Mon Sep 17 00:00:00 2001 From: Vitaliy Margolen Date: Tue, 1 Feb 2011 20:28:00 -0700 Subject: [PATCH] dinput: Return correct error code for DIPROP_VIDPID. --- dlls/dinput/device.c | 3 +++ include/dinput.h | 1 + 2 files changed, 4 insertions(+) diff --git a/dlls/dinput/device.c b/dlls/dinput/device.c index 44c99dd1877..397e70ec074 100644 --- a/dlls/dinput/device.c +++ b/dlls/dinput/device.c @@ -906,6 +906,9 @@ HRESULT WINAPI IDirectInputDevice2WImpl_GetProperty(LPDIRECTINPUTDEVICE8W iface, TRACE("buffersize = %d\n", pd->dwData); break; } + case (DWORD_PTR) DIPROP_VIDPID: + FIXME("DIPROP_VIDPID not implemented\n"); + return DIERR_UNSUPPORTED; default: FIXME("Unknown property %s\n", debugstr_guid(rguid)); return DIERR_INVALIDPARAM; diff --git a/include/dinput.h b/include/dinput.h index 36b385f4273..ac3aabaa912 100644 --- a/include/dinput.h +++ b/include/dinput.h @@ -764,6 +764,7 @@ typedef const DIPROPSTRING *LPCDIPROPSTRING; #define DIPROP_CALIBRATION MAKEDIPROP(11) #define DIPROP_GUIDANDPATH MAKEDIPROP(12) #define DIPROP_KEYNAME MAKEDIPROP(20) +#define DIPROP_VIDPID MAKEDIPROP(24) typedef struct DIDEVCAPS_DX3 { DWORD dwSize;