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(