From a494b6d595059d6fb6464935e429176a714d490d Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Thu, 04 Nov 2004 20:04:19 +0000 Subject: invalid opcode during xfer message shows the opcode itself now. git-svn-id: http://svn.klever.net/kin/pumpkin/trunk@48 fe716a7a-6dde-0310-88d9-d003556173a8 --- diff --git a/PumpKINDlg.cpp b/PumpKINDlg.cpp index fc24596..b6b8a36 100644 --- a/PumpKINDlg.cpp +++ b/PumpKINDlg.cpp @@ -941,9 +941,13 @@ BOOL rv = TRUE; rv = FALSE; break; default: - ASSERT(m_Daddy); - m_Daddy->LogLine(IDS_LOG_XFEROPCODE); - // *** Self destruct maybe?? + { + ASSERT(m_Daddy); + CString tmp; + tmp.Format(IDS_LOG_XFEROPCODE,p->Opcode()); + m_Daddy->LogLine(tmp); + // *** Self destruct maybe?? + } break; } return rv; @@ -1021,9 +1025,13 @@ BOOL CWRQSocket::OnTFTP(tftp* p) Destroy(FALSE); return FALSE; default: - ASSERT(m_Daddy); - m_Daddy->LogLine(IDS_LOG_XFEROPCODE); - // *** Self destruct maybe?? + { + ASSERT(m_Daddy); + CString tmp; + tmp.Format(IDS_LOG_XFEROPCODE,p->Opcode()); + m_Daddy->LogLine(tmp); + // *** Self destruct maybe?? + } break; } return TRUE; diff --git a/pumpkin.rc b/pumpkin.rc index 7f3bbde..1bf0fd3 100644 --- a/pumpkin.rc +++ b/pumpkin.rc @@ -495,7 +495,7 @@ BEGIN IDS_LOG_XFERSOURCETID "Packet from unexpected source" IDS_LOG_SENTTFTPERROR ":%u: %s" IDS_LOG_GOTTFTPERROR "TFTP:%u: %s" - IDS_LOG_XFEROPCODE "Invalid opcode during transfer received" + IDS_LOG_XFEROPCODE "Invalid opcode (%u) during transfer received" IDS_LOG_XFERRRQFINISHED "Transfer of '%s' has successfully completed" IDS_TITLE_OPTIONS "Options" IDS_LOG_WRQSERVE "Writing of '%s' of type '%s' is requested by %s" -- cgit v0.9.0.2