Windows Shell Integration: Fix another spot where the pipe path was constructed manually

This commit is contained in:
Daniel Molkentin 2016-05-10 13:49:14 +02:00
parent d659c54798
commit 9d6701ecbe

View file

@ -71,8 +71,7 @@ OCClientInterface::ContextMenuInfo OCClientInterface::FetchInfo()
void OCClientInterface::ShareObject(const std::wstring &path)
{
auto pipename = std::wstring(L"\\\\.\\pipe\\");
pipename += L"ownCloud";
auto pipename = CommunicationSocket::DefaultPipePath();
CommunicationSocket socket;
if (!WaitNamedPipe(pipename.data(), PIPE_TIMEOUT)) {