summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-01-02 13:08:30 +0100
committerDavid Tardon <dtardon@redhat.com>2011-01-14 15:58:28 +0100
commit769901f9497588cd61d011c04329c36246944596 (patch)
tree652264889a23599bb4e360f1d399880666ed6ed1 /fpicker
parent06c08a36bc7961b33dbb7bb55c197f5fa9c9b6c8 (diff)
specify array size as a constant
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/win32/filepicker/controlaccess.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/fpicker/source/win32/filepicker/controlaccess.cxx b/fpicker/source/win32/filepicker/controlaccess.cxx
index 723b08cf5e..b21fa64e55 100644
--- a/fpicker/source/win32/filepicker/controlaccess.cxx
+++ b/fpicker/source/win32/filepicker/controlaccess.cxx
@@ -226,9 +226,10 @@ CTRL_GETVALUE_FUNCTION_T SAL_CALL GetCtrlGetValueFunction( CTRL_CLASS aCtrlClass
CTRL_CLASS SAL_CALL GetCtrlClass( HWND hwndCtrl )
{
CTRL_CLASS aCtrlClass = UNKNOWN;
- TCHAR aClassName[256];
+ const size_t nClassNameSize = 256;
+ TCHAR aClassName[nClassNameSize];
- int nRet = GetClassName(hwndCtrl,aClassName,(sizeof(aClassName)/sizeof(TCHAR)));
+ int nRet = GetClassName(hwndCtrl,aClassName,nClassNameSize);
if (nRet)
{
if (0 == _tcsicmp(aClassName,TEXT("button")))