Oops all variables

This commit is contained in:
msciotti 2018-11-16 15:30:53 -08:00
parent 6796d2ffa9
commit 1d30b94987
No known key found for this signature in database
GPG Key ID: 40FADA25CF0EAD84

View File

@ -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<BaseConnectionWin*>(this);
for (;;) {
self->pipe = ::CreateFileW(