Kaydet (Commit) 263e31fa authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS sal02 (1.5.2.1.10); FILE MERGED

2003/03/24 11:57:53 tra 1.5.2.1.10.1: #108286#GetCtrlClass: providing correct buffer size to GetClassName
üst ba6fbead
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: controlaccess.cxx,v $ * $RCSfile: controlaccess.cxx,v $
* *
* $Revision: 1.6 $ * $Revision: 1.7 $
* *
* last change: $Author: hr $ $Date: 2003-03-25 18:04:58 $ * last change: $Author: rt $ $Date: 2003-04-08 15:47:59 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -265,7 +265,7 @@ CTRL_CLASS SAL_CALL GetCtrlClass( HWND hwndCtrl ) ...@@ -265,7 +265,7 @@ CTRL_CLASS SAL_CALL GetCtrlClass( HWND hwndCtrl )
CTRL_CLASS aCtrlClass = UNKNOWN; CTRL_CLASS aCtrlClass = UNKNOWN;
TCHAR aClassName[256]; TCHAR aClassName[256];
int nRet = GetClassName(hwndCtrl,aClassName,sizeof(aClassName)); int nRet = GetClassName(hwndCtrl,aClassName,(sizeof(aClassName)/sizeof(TCHAR)));
if (nRet) if (nRet)
{ {
if (0 == _tcsicmp(aClassName,TEXT("button"))) if (0 == _tcsicmp(aClassName,TEXT("button")))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment