From 766596722ceddf8d8e6f07a69fd89e45576c45bf Mon Sep 17 00:00:00 2001 From: msciotti Date: Fri, 14 Dec 2018 17:58:35 -0800 Subject: [PATCH] This one actually works!!!! --- src/connection_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection_win.cpp b/src/connection_win.cpp index 7706f30..e94670e 100644 --- a/src/connection_win.cpp +++ b/src/connection_win.cpp @@ -35,7 +35,7 @@ bool BaseConnection::Open(int pipe) { wchar_t pipeName[]{L"\\\\?\\pipe\\discord-ipc-0"}; const size_t pipeDigit = sizeof(pipeName) / sizeof(wchar_t) - 2; - pipeName[pipeDigit] = (L'%d', pipe); + pipeName[pipeDigit] += pipe; auto self = reinterpret_cast(this); for (;;) { self->pipe = ::CreateFileW(