Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6688 by doda, Mon Apr 24 11:49:42 2017 UTC revision 6691 by doda, Mon Apr 24 11:49:52 2017 UTC
# Line 94  static char FAR *ProtocolFamilyList[] = Line 94  static char FAR *ProtocolFamilyList[] =
94    
95  static HICON SecureLargeIcon = NULL;  static HICON SecureLargeIcon = NULL;
96  static HICON SecureSmallIcon = NULL;  static HICON SecureSmallIcon = NULL;
97    static HICON SecureNotifyIcon = NULL;
98    static HICON OldNotifyIcon = NULL;
99    
100  static HFONT DlgHostFont;  static HFONT DlgHostFont;
101  static HFONT DlgAboutFont;  static HFONT DlgAboutFont;
# Line 166  static void uninit_TTSSH(PTInstVar pvar) Line 168  static void uninit_TTSSH(PTInstVar pvar)
168                              (LPARAM) pvar->OldSmallIcon);                              (LPARAM) pvar->OldSmallIcon);
169                  pvar->OldSmallIcon = NULL;                  pvar->OldSmallIcon = NULL;
170          }          }
171            if (OldNotifyIcon) {
172                    SetCustomNotifyIcon(OldNotifyIcon);
173            }
174    
175          ssh_heartbeat_lock_finalize();          ssh_heartbeat_lock_finalize();
176  }  }
# Line 914  void notify_established_secure_connectio Line 919  void notify_established_secure_connectio
919                              (LPARAM) SecureSmallIcon);                              (LPARAM) SecureSmallIcon);
920          }          }
921    
922            if (IsWindows2000()) {
923                    if (SecureNotifyIcon == NULL) {
924                            SecureNotifyIcon = LoadImage(hInst, MAKEINTRESOURCE(pvar->settings.IconID),
925                                                         IMAGE_ICON, 0, 0, LR_VGACOLOR | LR_SHARED);
926                    }
927                    OldNotifyIcon = GetCustomNotifyIcon();
928                    SetCustomNotifyIcon(SecureNotifyIcon);
929            }
930    
931          notify_verbose_message(pvar, "Entering secure mode",          notify_verbose_message(pvar, "Entering secure mode",
932                                 LOG_LEVEL_VERBOSE);                                 LOG_LEVEL_VERBOSE);
933  }  }

Legend:
Removed from v.6688  
changed lines
  Added in v.6691

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26