joy.cpl: Constify some character strings
Frédéric Delanoy
frederic.delanoy at gmail.com
Mon Dec 16 16:26:10 CST 2013
---
dlls/joy.cpl/main.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/joy.cpl/main.c b/dlls/joy.cpl/main.c
index d294e35..53c0eae 100644
--- a/dlls/joy.cpl/main.c
+++ b/dlls/joy.cpl/main.c
@@ -39,6 +39,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(joycpl);
DECLSPEC_HIDDEN HMODULE hcpl;
+static const WCHAR button_class[] = {'B','u','t','t','o','n','\0'};
+
/*********************************************************************
* DllMain
*/
@@ -476,7 +478,6 @@ static void draw_joystick_buttons(HWND hwnd, struct JoystickData* data)
int row = 0, col = 0;
WCHAR button_label[3];
HINSTANCE hinst = (HINSTANCE) GetWindowLongPtrW(hwnd, GWLP_HINSTANCE);
- static WCHAR button_class[] = {'B','u','t','t','o','n','\0'};
for (i = 0; i < TEST_MAX_BUTTONS; i++)
{
@@ -508,7 +509,6 @@ static void draw_joystick_axes(HWND hwnd, struct JoystickData* data)
{
int i;
HINSTANCE hinst = (HINSTANCE) GetWindowLongPtrW(hwnd, GWLP_HINSTANCE);
- static const WCHAR button_class[] = {'B','u','t','t','o','n','\0'};
static const WCHAR axes_names[TEST_MAX_AXES][7] = { {'X',',','Y','\0'}, {'R','x',',','R','y','\0'},
{'Z',',','R','z','\0'}, {'P','O','V','\0'} };
static const DWORD axes_idc[TEST_MAX_AXES] = { IDC_TESTGROUPXY, IDC_TESTGROUPRXRY,
@@ -613,7 +613,6 @@ static INT_PTR CALLBACK test_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM
static void draw_ff_axis(HWND hwnd, struct JoystickData *data)
{
HINSTANCE hinst = (HINSTANCE) GetWindowLongPtrW(hwnd, GWLP_HINSTANCE);
- static WCHAR button_class[] = {'B','u','t','t','o','n','\0'};
RECT r;
r.left = FF_AXIS_X;
--
1.8.5
More information about the wine-patches
mailing list