Skip to content

Commit

Permalink
Merge pull request #2406 from versat/patch-1
Browse files Browse the repository at this point in the history
Fix buffer size for call of function GetWindowText
  • Loading branch information
JuhaSointusalo authored and Kevin Reed committed Mar 27, 2018
1 parent d74bb64 commit 8d438be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clientsetup/win/CAShutdownBOINCManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 8d438be

Please sign in to comment.