Esempio n. 1
0
//---------------------------------------------------------------------------
static void SSHFatalError(const char * Format, va_list Param)
{
  char Buf[200];
  vsnprintf(Buf, LENOF(Buf), Format, Param);
  Buf[LENOF(Buf) - 1] = '\0';

  // Only few calls from putty\winnet.c might be connected with specific
  // TSecureShell. Otherwise called only for really fatal errors
  // like 'out of memory' from putty\ssh.c.
  throw ESshFatal(NULL, Buf);
}
Esempio n. 2
0
static void SSHFatalError(const char * Format, va_list Param)
{
  std::string Buf;
  Buf.resize(32 * 1024);
  vsnprintf((char *)Buf.c_str(), Buf.size(), Format, Param);
  Buf[Buf.size() - 1] = '\0';

  // Only few calls from putty\winnet.c might be connected with specific
  // TSecureShell. Otherwise called only for really fatal errors
  // like 'out of memory' from putty\ssh.c.
  throw ESshFatal(nullptr, Buf.c_str());
}
Esempio n. 3
0
void CleanupExit(int /*code*/)
{
  throw ESshFatal(nullptr, L"");
}
Esempio n. 4
0
//---------------------------------------------------------------------------
void cleanup_exit(int /*code*/)
{
  throw ESshFatal(NULL, "");
}