Otherwise we can't have operation that has many many filename
As reported in #6780
Signed-off-by: Michael Schuster <michael@schuster.ms>
using namespace std;
#define PIPE_TIMEOUT 5*1000 //ms
-#define SOCK_BUFFER 4096
OCClientInterface::ContextMenuInfo OCClientInterface::FetchInfo(const std::wstring &files)
{
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());
}