From: Daniel Molkentin Date: Tue, 10 May 2016 11:49:14 +0000 (+0200) Subject: Windows Shell Integration: Fix another spot where the pipe path was constructed manually X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1172^2~17 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9d6701ecbec85d389be36b167905c9c1e14e99f7;p=nextcloud-desktop.git Windows Shell Integration: Fix another spot where the pipe path was constructed manually --- 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)) {