SSH Agent: Fix CreateFileMappingA Parameter (#8619)

The last argument of CreateFileMappingA is of type string.
This commit is contained in:
YAMASAKI Masahide 2022-10-28 17:51:27 +09:00 committed by Jonathan White
parent fa4837c67b
commit f01608f2bb

View File

@ -211,7 +211,7 @@ bool SSHAgent::sendMessagePageant(const QByteArray& in, QByteArray& out)
}
QByteArray mapName =
(QString("SSHAgentRequest") + reinterpret_cast<intptr_t>(QThread::currentThreadId())).toLatin1();
(QString("SSHAgentRequest%1").arg(int(QThread::currentThreadId()), 8, 16, QChar('0'))).toLatin1();
HANDLE handle = CreateFileMappingA(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, AGENT_MAX_MSGLEN, mapName.data());