Windows Shell Integration: Fix another spot where the pipe path was constructed manually
authorDaniel Molkentin <danimo@owncloud.com>
Tue, 10 May 2016 11:49:14 +0000 (13:49 +0200)
committerDaniel Molkentin <danimo@owncloud.com>
Tue, 10 May 2016 11:49:14 +0000 (13:49 +0200)
shell_integration/windows/OCContextMenu/OCClientInterface.cpp

index 598a10dfdd95afde445895915bbdbae7232cf97c..0ddf663ee554d9d5b4afd93efd3d9717359f7c97 100644 (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)) {