[PATCH] dinput: Turn two variables into static constants

Alex Henrie alexhenrie24 at gmail.com
Mon Dec 3 22:42:52 CST 2018


Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 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 9f426f3f2a..0ec1ceb249 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);
 
-- 
2.19.2




More information about the wine-devel mailing list