Added custom I/O control support to the CIFS server to support the client

side Windows application to expose repo specific functions such as check in/out.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2058 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gary Spencer
2005-12-22 15:04:54 +00:00
parent 12c2495a07
commit 927c58f048
8 changed files with 401 additions and 76 deletions

View File

@@ -254,8 +254,12 @@ public class DataBuffer
maxlen = availLen;
ret = DataPacker.getUnicodeString(m_data, m_pos, maxlen);
if (ret != null)
m_pos += (ret.length() * 2) + 2;
if (ret != null) {
if ( ret.length() < maxlen)
m_pos += (ret.length() * 2) + 2;
else
m_pos += maxlen * 2;
}
}
else
{
@@ -269,8 +273,12 @@ public class DataBuffer
// Unpack the ASCII string
ret = DataPacker.getString(m_data, m_pos, maxlen);
if (ret != null)
m_pos += ret.length() + 1;
if (ret != null) {
if ( ret.length() < maxlen)
m_pos += ret.length() + 1;
else
m_pos += maxlen;
}
}
// Return the string