Skip to content

Commit

Permalink
Fix realmd build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ratkosrb committed Sep 6, 2024
1 parent a7897d1 commit af63ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/realmd/AuthSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@ void AuthSocket::RepeatInternalXferLoop(std::shared_ptr<XFER_DATA_CHUNK> const&
// This `fakeSharedPtr` is a bit hacky, we cannot simply Write() a XFER_DATA_CHUNK pointer.
// This is why we convert it to an uint8 pointer without a deallocator.
std::shared_ptr<uint8 const> fakeSharedPtr((uint8_t const*)chunk.get(), MaNGOS::Memory::no_deleter<uint8>());
m_socket.Write({ fakeSharedPtr, sizeof(chunk->cmd) + sizeof(chunk->data_size) + actualReadAmount }, [self = shared_from_this(), chunk](IO::NetworkError const& error)
m_socket.Write({ fakeSharedPtr, size_t(sizeof(chunk->cmd) + sizeof(chunk->data_size) + actualReadAmount) }, [self = shared_from_this(), chunk](IO::NetworkError const& error)
{
if (error)
{
Expand Down

0 comments on commit af63ec8

Please sign in to comment.