mirror of https://github.com/BOINC/boinc.git
Merge pull request #2406 from versat/patch-1
Fix buffer size for call of function GetWindowText
This commit is contained in:
commit
50e8f9eac0
|
@ -83,7 +83,7 @@ UINT CAShutdownBOINCManager::OnExecution()
|
|||
hWndBOINCManagerSystray = FindWindow( _T("wxTaskBarExWindowClass"), _T("BOINCManagerSystray") );
|
||||
if ( NULL != hWndBOINCManagerSystray )
|
||||
{
|
||||
GetWindowText( hWndBOINCManagerSystray, szWindowTitle, (sizeof(szWindowTitle) * sizeof(TCHAR)));
|
||||
GetWindowText( hWndBOINCManagerSystray, szWindowTitle, (sizeof(szWindowTitle) / sizeof(TCHAR)));
|
||||
LogProgress( szWindowTitle );
|
||||
|
||||
lrReturnValue = SendMessage( hWndBOINCManagerSystray, WM_TASKBARSHUTDOWN, NULL, NULL );
|
||||
|
|
Loading…
Reference in New Issue