Merge pull request #2406 from versat/patch-1

Fix buffer size for call of function GetWindowText
This commit is contained in:
Juha Sointusalo 2018-03-23 18:19:18 +02:00 committed by GitHub
commit 50e8f9eac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 );