Alex Henrie : dinput: Turn two variables into static constants.
Module: wine Branch: master Commit: 2ad7ecc6cdce22c4b4bbeea82fb7ff1f022fbcfb URL: https://source.winehq.org/git/wine.git/?a=commit;h=2ad7ecc6cdce22c4b4bbeea82... Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Mon Dec 3 21:42:52 2018 -0700 dinput: Turn two variables into static constants. Signed-off-by: Alex Henrie <alexhenrie24(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/dinput/joystick.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/dinput/joystick.c b/dlls/dinput/joystick.c index 9f426f3..0ec1ceb 100644 --- a/dlls/dinput/joystick.c +++ b/dlls/dinput/joystick.c @@ -766,11 +766,11 @@ HRESULT WINAPI JoystickWGenericImpl_BuildActionMap(LPDIRECTINPUTDEVICE8W iface, LPCWSTR lpszUserName, DWORD dwFlags) { + static const DWORD object_types[] = { DIDFT_AXIS, DIDFT_BUTTON }; + static const DWORD type_map[] = { DIDFT_RELAXIS, DIDFT_PSHBUTTON }; JoystickGenericImpl *This = impl_from_IDirectInputDevice8W(iface); unsigned int i, j; BOOL has_actions = FALSE; - DWORD object_types[] = { DIDFT_AXIS, DIDFT_BUTTON }; - DWORD type_map[] = { DIDFT_RELAXIS, DIDFT_PSHBUTTON }; FIXME("(%p)->(%p,%s,%08x): semi-stub !\n", iface, lpdiaf, debugstr_w(lpszUserName), dwFlags);
participants (1)
-
Alexandre Julliard