diff options
-rw-r--r-- | src/core/hle/service/soc_u.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/soc_u.cpp b/src/core/hle/service/soc_u.cpp index 4606ad743..b7c8eff57 100644 --- a/src/core/hle/service/soc_u.cpp +++ b/src/core/hle/service/soc_u.cpp @@ -729,7 +729,11 @@ static void GetSockOpt(Service::Interface* self) { u32 socket_handle = cmd_buffer[1]; u32 level = cmd_buffer[2]; u32 optname = cmd_buffer[3]; +#ifdef _WIN32 int optlen = (int)cmd_buffer[4]; +#else + socklen_t optlen = (socklen_t)cmd_buffer[4]; +#endif // 0x100 = static buffer offset (bytes) // + 0x4 = 2nd pointer (u32) position |