user32: Make some data const

Dmitry Timoshkov dmitry at codeweavers.com
Tue Nov 28 04:38:46 CST 2006


Hello,

Changelog:
    user32: Make some data const.

---
 dlls/user32/cursoricon.c |    2 +-
 dlls/user32/spy.c        |    2 +-
 dlls/user32/static.c     |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c
index 3b15b99..f4d861b 100644
--- a/dlls/user32/cursoricon.c
+++ b/dlls/user32/cursoricon.c
@@ -130,7 +130,7 @@ static CRITICAL_SECTION_DEBUG critsect_d
 };
 static CRITICAL_SECTION IconCrst = { &critsect_debug, -1, 0, 0, 0, 0 };
 
-static WORD ICON_HOTSPOT = 0x4242;
+static const WORD ICON_HOTSPOT = 0x4242;
 
 
 /***********************************************************************
diff --git a/dlls/user32/spy.c b/dlls/user32/spy.c
index d23d230..451b0b2 100644
--- a/dlls/user32/spy.c
+++ b/dlls/user32/spy.c
@@ -1567,7 +1567,7 @@ static const USER_MSG propsht_array[] = 
           USM(PSM_SETTITLEW           ,0),
           USM(PSM_SETFINISHTEXTW      ,0),
           {0,0,0} };
-const WCHAR PropSheetInfoStr[] =
+static const WCHAR PropSheetInfoStr[] =
     {'P','r','o','p','e','r','t','y','S','h','e','e','t','I','n','f','o',0 };
 
 static const USER_MSG updown_array[] = {
diff --git a/dlls/user32/static.c b/dlls/user32/static.c
index 3c9292b..df35308 100644
--- a/dlls/user32/static.c
+++ b/dlls/user32/static.c
@@ -73,7 +73,7 @@ #define STATIC_EXTRA_BYTES  (HICON_GWL_O
 
 typedef void (*pfPaint)( HWND hwnd, HDC hdc, DWORD style );
 
-static pfPaint staticPaintFunc[SS_TYPEMASK+1] =
+static const pfPaint staticPaintFunc[SS_TYPEMASK+1] =
 {
     STATIC_PaintTextfn,      /* SS_LEFT */
     STATIC_PaintTextfn,      /* SS_CENTER */
-- 
1.4.2






More information about the wine-patches mailing list