diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-06-15 09:04:10 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-06-15 09:04:10 +0000 |
commit | 903a542f4bda22957e5bcb9f81d49dd6251519b0 (patch) | |
tree | d906a03b67d9a81f06c53ca7c5f66b5f66d67b91 /plugins/HTTPServer/src/FileShareNode.cpp | |
parent | 56483015550c6d1fc88acf02c5dd4cc504927aad (diff) |
some unicode fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@9492 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HTTPServer/src/FileShareNode.cpp')
-rw-r--r-- | plugins/HTTPServer/src/FileShareNode.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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;
|