diff options
author | Christian Kamm <mail@ckamm.de> | 2019-03-21 12:25:02 +0300 |
---|---|---|
committer | Christian Kamm <mail@ckamm.de> | 2019-03-21 12:25:02 +0300 |
commit | 05a4804abe5e3e743f9ecc878035478c90c4693e (patch) | |
tree | e25c66a40f32006b124c03dac55ec0c34aca58b8 /shell_integration | |
parent | c5a58af8bd1a714b0c0bbd65fd0b61c4c8081592 (diff) |
Windows: Fix compile in shell_integration (3)
Diffstat (limited to 'shell_integration')
-rw-r--r-- | shell_integration/windows/OCUtil/CommunicationSocket.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/shell_integration/windows/OCUtil/CommunicationSocket.cpp b/shell_integration/windows/OCUtil/CommunicationSocket.cpp index 9d25bd84a..7d9956835 100644 --- a/shell_integration/windows/OCUtil/CommunicationSocket.cpp +++ b/shell_integration/windows/OCUtil/CommunicationSocket.cpp @@ -47,7 +47,13 @@ std::wstring getUserName() { std::wstring CommunicationSocket::DefaultPipePath() { auto pipename = std::wstring(L"\\\\.\\pipe\\"); - pipename.append(APPLICATION_SHORTNAME); + +#define WIDEN_(exp) L##exp +#define WIDEN(exp) WIDEN_(exp) + pipename += WIDEN(APPLICATION_SHORTNAME); +#undef WIDEN +#undef WIDEN_ + pipename += L"-"; pipename += getUserName(); return pipename; |