From 3dfcbb10e959d0005bc9302d53b9886729f3b385 Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Sun, 5 Apr 2015 23:11:11 +0100 Subject: [PATCH] Fix MSVC error when building for 64bits --- src/blackinput/win/joystick_windows.cpp | 4 ++-- src/blackinput/win/joystick_windows.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/blackinput/win/joystick_windows.cpp b/src/blackinput/win/joystick_windows.cpp index 6998d04c7..c1d58edfa 100644 --- a/src/blackinput/win/joystick_windows.cpp +++ b/src/blackinput/win/joystick_windows.cpp @@ -20,8 +20,8 @@ using namespace BlackMisc::Hardware; namespace BlackInput { - TCHAR *CJoystickWindows::m_helperWindowClassName = TEXT("SDLHelperWindowInputCatcher"); - TCHAR *CJoystickWindows::m_helperWindowName = TEXT("SDLHelperWindowInputMsgWindow"); + const TCHAR *CJoystickWindows::m_helperWindowClassName = TEXT("SDLHelperWindowInputCatcher"); + const TCHAR *CJoystickWindows::m_helperWindowName = TEXT("SDLHelperWindowInputMsgWindow"); ATOM CJoystickWindows::m_helperWindowClass = 0; HWND CJoystickWindows::m_helperWindow = nullptr; diff --git a/src/blackinput/win/joystick_windows.h b/src/blackinput/win/joystick_windows.h index a0081ded2..233189ae9 100644 --- a/src/blackinput/win/joystick_windows.h +++ b/src/blackinput/win/joystick_windows.h @@ -119,8 +119,8 @@ namespace BlackInput IJoystick::Mode m_mode = ModeNominal; //!< Current working mode - static WCHAR *m_helperWindowClassName; //!< Helper window class name - static WCHAR *m_helperWindowName; //!< Helper window name + static const WCHAR *m_helperWindowClassName; //!< Helper window class name + static const WCHAR *m_helperWindowName; //!< Helper window name static ATOM m_helperWindowClass; static HWND m_helperWindow; //!< Helper window handle