mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix SSH Agent Build on MSYS Windows (#8708)
This commit is contained in:
parent
188fff1488
commit
6fa34bdbfe
@ -210,8 +210,8 @@ bool SSHAgent::sendMessagePageant(const QByteArray& in, QByteArray& out)
|
||||
return false;
|
||||
}
|
||||
|
||||
QByteArray mapName =
|
||||
(QString("SSHAgentRequest%1").arg(int(QThread::currentThreadId()), 8, 16, QChar('0'))).toLatin1();
|
||||
auto threadId = reinterpret_cast<qlonglong>(QThread::currentThreadId());
|
||||
QByteArray mapName = (QString("SSHAgentRequest%1").arg(threadId, 8, 16, QChar('0'))).toLatin1();
|
||||
|
||||
HANDLE handle = CreateFileMappingA(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, AGENT_MAX_MSGLEN, mapName.data());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user