From 0f803086b87553cca8b343b7a54672ecde09909f Mon Sep 17 00:00:00 2001 From: upstream svn Date: Sun, 26 Sep 2010 09:56:06 +0000 Subject: [PATCH] Fix broken throw statement see http://forum.amule.org/index.php?topic=18169.msg99273#msg99273 --- .svn-revision | 2 +- src/kademlia/net/KademliaUDPListener.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.svn-revision b/.svn-revision index 37691887..3254f8a8 100644 --- a/.svn-revision +++ b/.svn-revision @@ -1 +1 @@ -10292 +10293 diff --git a/src/kademlia/net/KademliaUDPListener.cpp b/src/kademlia/net/KademliaUDPListener.cpp index 8cf0d09c..d0d9e9c4 100644 --- a/src/kademlia/net/KademliaUDPListener.cpp +++ b/src/kademlia/net/KademliaUDPListener.cpp @@ -1244,7 +1244,7 @@ void CKademliaUDPListener::ProcessPublishResponse(const uint8_t *packetData, uin void CKademliaUDPListener::Process2PublishResponse(const uint8_t *packetData, uint32_t lenPacket, uint32_t ip, uint16_t port, const CKadUDPKey& senderKey) { if (!IsOnOutTrackList(ip, KADEMLIA2_PUBLISH_KEY_REQ) && !IsOnOutTrackList(ip, KADEMLIA2_PUBLISH_SOURCE_REQ) && !IsOnOutTrackList(ip, KADEMLIA2_PUBLISH_NOTES_REQ)) { - throw (CFormat(wxT("***NOTE: Received unrequested response packet, size (%u) in %s")) % lenPacket % wxString::FromAscii(__FUNCTION__)); + throw wxString(CFormat(wxT("***NOTE: Received unrequested response packet, size (%u) in %s")) % lenPacket % wxString::FromAscii(__FUNCTION__)); } CMemFile bio(packetData, lenPacket); CUInt128 file = bio.ReadUInt128(); -- 2.11.4.GIT