From 9d6701ecbec85d389be36b167905c9c1e14e99f7 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Tue, 10 May 2016 13:49:14 +0200 Subject: [PATCH] Windows Shell Integration: Fix another spot where the pipe path was constructed manually --- shell_integration/windows/OCContextMenu/OCClientInterface.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shell_integration/windows/OCContextMenu/OCClientInterface.cpp b/shell_integration/windows/OCContextMenu/OCClientInterface.cpp index 598a10dfd..0ddf663ee 100644 --- a/shell_integration/windows/OCContextMenu/OCClientInterface.cpp +++ b/shell_integration/windows/OCContextMenu/OCClientInterface.cpp @@ -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)) { -- 2.39.5