зеркало из https://github.com/nextcloud/desktop.git
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 Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
Родитель
77cc262337
Коммит
906556640d
|
@ -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());
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче