Oops all variables
This commit is contained in:
parent
6796d2ffa9
commit
1d30b94987
@ -37,6 +37,7 @@ bool BaseConnection::Open(int pipe)
|
|||||||
stream << L"\\\\?\\pipe\\discord-ipc-" << pipe;
|
stream << L"\\\\?\\pipe\\discord-ipc-" << pipe;
|
||||||
std::wstring asString = stream.str();
|
std::wstring asString = stream.str();
|
||||||
const WCHAR* pipeName = asString.c_str();
|
const WCHAR* pipeName = asString.c_str();
|
||||||
|
const size_t pipeDigit = sizeof(pipeName) / sizeof(wchar_t) - 2;
|
||||||
auto self = reinterpret_cast<BaseConnectionWin*>(this);
|
auto self = reinterpret_cast<BaseConnectionWin*>(this);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
self->pipe = ::CreateFileW(
|
self->pipe = ::CreateFileW(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user