diff --git a/src/modules/ZoomIt/ZoomIt/Zoomit.cpp b/src/modules/ZoomIt/ZoomIt/Zoomit.cpp index d198616bbc00..f8d1fd3a071a 100644 --- a/src/modules/ZoomIt/ZoomIt/Zoomit.cpp +++ b/src/modules/ZoomIt/ZoomIt/Zoomit.cpp @@ -1820,7 +1820,7 @@ INT_PTR CALLBACK OptionsTabProc( HWND hDlg, UINT message, break; case WM_PAINT: - if( (hTextPreview = GetDlgItem( hDlg, IDC_TEXT_FONT ))) { + if( (hTextPreview = GetDlgItem( hDlg, IDC_TEXT_FONT )) != 0 ) { // 16-pt preview LOGFONT _lf = g_LogFont;