Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2018-09-20 18:14:05 +0300
committerOlivier Goffart <olivier@woboq.com>2018-09-21 12:50:23 +0300
commite04af3088bb1d8bd417f4fbad247df62df192206 (patch)
tree44798e57f8141c7e8017b03554a439b2f1682b9b /shell_integration
parent44ae0df62b8fe348c0c9c7368e5e72e80a6be374 (diff)
Windows Shell Integration: Don't limit the size of the buffer
Otherwise we can't have operation that has many many filename As reported in #6780
Diffstat (limited to 'shell_integration')
-rw-r--r--shell_integration/windows/OCContextMenu/OCClientInterface.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/shell_integration/windows/OCContextMenu/OCClientInterface.cpp b/shell_integration/windows/OCContextMenu/OCClientInterface.cpp
index 019ca5c27..f855310e5 100644
--- a/shell_integration/windows/OCContextMenu/OCClientInterface.cpp
+++ b/shell_integration/windows/OCContextMenu/OCClientInterface.cpp
@@ -32,7 +32,6 @@
using namespace std;
#define PIPE_TIMEOUT 5*1000 //ms
-#define SOCK_BUFFER 4096
OCClientInterface::ContextMenuInfo OCClientInterface::FetchInfo(const std::wstring &files)
{
@@ -92,9 +91,5 @@ void OCClientInterface::SendRequest(const wchar_t *verb, const std::wstring &pat
return;
}
- wchar_t msg[SOCK_BUFFER] = { 0 };
- if (SUCCEEDED(StringCchPrintf(msg, SOCK_BUFFER, L"%s:%s\n", verb, path.c_str())))
- {
- socket.SendMsg(msg);
- }
+ socket.SendMsg((verb + (L":" + path + L"\n")).data());
}