summaryrefslogtreecommitdiff
path: root/protocols/MRA/src/MraMRIMProxy.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-09 15:12:22 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-09 15:12:22 +0000
commitfaf22fc165caf88e561b78752aab4a1704c89086 (patch)
treeeced99885a9e49e2dc093df2e25e8a3a2cc8225e /protocols/MRA/src/MraMRIMProxy.cpp
parent30eda997b099947ea38c17d547950edc4a5af8eb (diff)
- fix for moving contact to another group;
- home made debug functions replaced with their CRT analogs git-svn-id: http://svn.miranda-ng.org/main/trunk@6417 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src/MraMRIMProxy.cpp')
-rw-r--r--protocols/MRA/src/MraMRIMProxy.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/MRA/src/MraMRIMProxy.cpp b/protocols/MRA/src/MraMRIMProxy.cpp
index 0f1068c0c0..f081596605 100644
--- a/protocols/MRA/src/MraMRIMProxy.cpp
+++ b/protocols/MRA/src/MraMRIMProxy.cpp
@@ -148,7 +148,7 @@ DWORD CMraProto::MraMrimProxyConnect(HANDLE hMraMrimProxyData, HANDLE *phConnect
case 1:
if (dwRcvBuffSizeUsed == BUFF_SIZE_RCV_MIN_FREE) { // bad packet
bContinue = FALSE;
- DebugBreak();
+ _CrtDbgBreak();
}
else {
dwBytesReceived = Netlib_Recv(nls.hReadConns[0], (LPSTR)(lpbBufferRcv+dwRcvBuffSizeUsed), (dwRcvBuffSize-dwRcvBuffSizeUsed), 0);
@@ -160,21 +160,21 @@ DWORD CMraProto::MraMrimProxyConnect(HANDLE hMraMrimProxyData, HANDLE *phConnect
if (((mrim_packet_header_t*)lpbBufferRcv)->msg == MRIM_CS_PROXY_HELLO_ACK) // connect OK!
dwRetErrorCode = NO_ERROR;
else // bad/wrong
- DebugBreak();
+ _CrtDbgBreak();
bContinue = FALSE;
}
else // not all packet received, continue receiving
- DebugPrintCRLF(L"Not all packet received, continue receiving");
+ DebugLogA("Not all packet received, continue receiving\n");
}
else { // bad packet
- DebugPrintCRLF(L"Bad packet");
- DebugBreak();
+ DebugLogA("Bad packet\n");
+ _ASSERT(false);
bContinue = FALSE;
}
}
else // packet too small, continue receiving
- DebugPrintCRLF(L"Packet to small, continue receiving");
+ DebugLogA("Packet to small, continue receiving\n");
}
else { // disconnected
dwRetErrorCode = GetLastError();