Skip to content

Commit e04af30

Browse files
committed
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
1 parent 44ae0df commit e04af30

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

shell_integration/windows/OCContextMenu/OCClientInterface.cpp

+1-6
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
using namespace std;
3333

3434
#define PIPE_TIMEOUT 5*1000 //ms
35-
#define SOCK_BUFFER 4096
3635

3736
OCClientInterface::ContextMenuInfo OCClientInterface::FetchInfo(const std::wstring &files)
3837
{
@@ -92,9 +91,5 @@ void OCClientInterface::SendRequest(const wchar_t *verb, const std::wstring &pat
9291
return;
9392
}
9493

95-
wchar_t msg[SOCK_BUFFER] = { 0 };
96-
if (SUCCEEDED(StringCchPrintf(msg, SOCK_BUFFER, L"%s:%s\n", verb, path.c_str())))
97-
{
98-
socket.SendMsg(msg);
99-
}
94+
socket.SendMsg((verb + (L":" + path + L"\n")).data());
10095
}

0 commit comments

Comments
 (0)