mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user