From 1d30b9498728c5e91a7708980ebf0d768ab23999 Mon Sep 17 00:00:00 2001 From: msciotti Date: Fri, 16 Nov 2018 15:30:53 -0800 Subject: [PATCH] Oops all variables --- src/connection_win.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/connection_win.cpp b/src/connection_win.cpp index d0b895b..9033057 100644 --- a/src/connection_win.cpp +++ b/src/connection_win.cpp @@ -37,6 +37,7 @@ bool BaseConnection::Open(int pipe) stream << L"\\\\?\\pipe\\discord-ipc-" << pipe; std::wstring asString = stream.str(); const WCHAR* pipeName = asString.c_str(); + const size_t pipeDigit = sizeof(pipeName) / sizeof(wchar_t) - 2; auto self = reinterpret_cast(this); for (;;) { self->pipe = ::CreateFileW(