diff --git a/clientsetup/win/CAShutdownBOINCManager.cpp b/clientsetup/win/CAShutdownBOINCManager.cpp index 6ea1fd44b6..66e9df45c5 100644 --- a/clientsetup/win/CAShutdownBOINCManager.cpp +++ b/clientsetup/win/CAShutdownBOINCManager.cpp @@ -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 );