diff --git a/Source/Core/Core/MemoryWatcher.cpp b/Source/Core/Core/MemoryWatcher.cpp index 5793a0626541..590cf091856e 100644 --- a/Source/Core/Core/MemoryWatcher.cpp +++ b/Source/Core/Core/MemoryWatcher.cpp @@ -141,7 +141,7 @@ void MemoryWatcher::Step() #ifdef _WIN32 unsigned long written; if (m_pipe != INVALID_HANDLE_VALUE) - WriteFile(m_pipe, message.c_str(), static_cast(message.size() + 1), &m_written, + WriteFile(m_pipe, message.c_str(), static_cast(message.size() + 1), &written, nullptr); #else sendto(m_fd, message.c_str(), message.size() + 1, 0, reinterpret_cast(&m_addr),