From 903a542f4bda22957e5bcb9f81d49dd6251519b0 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 15 Jun 2014 09:04:10 +0000 Subject: some unicode fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@9492 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HTTPServer/src/FileShareNode.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/HTTPServer/src/FileShareNode.cpp') diff --git a/plugins/HTTPServer/src/FileShareNode.cpp b/plugins/HTTPServer/src/FileShareNode.cpp index cb5c3144b9..988c98fe42 100644 --- a/plugins/HTTPServer/src/FileShareNode.cpp +++ b/plugins/HTTPServer/src/FileShareNode.cpp @@ -86,7 +86,7 @@ void CLShareUser::CloseSocket() { int nBytesRead; do { char szBuf[100]; - nBytesRead = Netlib_Recv(hConnection, szBuf, sizeof(szBuf), 0); + nBytesRead = Netlib_Recv(hConnection, szBuf, SIZEOF(szBuf), 0); } while (nBytesRead && nBytesRead != SOCKET_ERROR); //shutdown( s, SD_RECEIVE ); } @@ -147,7 +147,8 @@ CLFileShareNode::CLFileShareNode(TCHAR *pszSrvPath, TCHAR *pszRealPath) // Developer : KN ///////////////////////////////////////////////////////////////////// -CLFileShareNode::CLFileShareNode(STFileShareInfo * pstInfo) { +CLFileShareNode::CLFileShareNode(STFileShareInfo * pstInfo) +{ memset(&st, 0, sizeof(STFileShareInfo)); st.lStructSize = sizeof(STFileShareInfo); pclNext = NULL; -- cgit v1.2.3