#5098·shadPS4

[APP BUG]: PosixSocket::SendMessage() fails silently with multi-buffer messages on Windows

Author: Crypto137Created Sep 24, 2026Updated Sep 24, 2026

Checklist

  • I have searched for a similar issue in this repository and did not find one.
  • I am using an official build obtained from releases or updated one of those builds using its in-app updater.

Describe the Bug

While tracking an issue where Marvel Heroes Omega (CUSA06762) is not able to send network messages, I believe I have found a problem with the Windows implementation of PosixSocket::SendMessage(). It appear to work correctly with single-buffer messages, but with multi-buffer messages wsasendmsg() fails, and WSAGetLastError() returns error 10022 (WSAEINVAL, invalid argument). As far as I can tell, this is not logged, so it fails silently. This results in multi-buffer messages not being sent.

When testing this with Marvel Heroes Omega, I have confirmed that removing wsasendmsg() and always using the send() fallback results in messages being sent, as expected.

Reproduction Steps

Run a game that uses PosixSocket::SendMessage() with multi-buffer messages.

Expected Behavior

Network message being sent.

Specify OS Version

Windows 10

CPU

AMD Ryzen 5 3600

GPU

NVIDIA RTX 3060 12 GB

Amount of RAM in GB

32 GB

Log File

CUSA06762.txt