diff options
author | Ryan Loebs <obsidianx@gmail.com> | 2016-03-29 23:33:32 +0200 |
---|---|---|
committer | Ryan Loebs <obsidianx@gmail.com> | 2016-03-29 23:33:32 +0200 |
commit | 64815a8b1609e874d5e3f403c93c8456bd4a9ccb (patch) | |
tree | e7e9c9917946a1b927f1f2fe9858a80c90e21a36 /src/core/hle/service/soc_u.cpp | |
parent | Compiling on Windows now (diff) | |
download | yuzu-64815a8b1609e874d5e3f403c93c8456bd4a9ccb.tar yuzu-64815a8b1609e874d5e3f403c93c8456bd4a9ccb.tar.gz yuzu-64815a8b1609e874d5e3f403c93c8456bd4a9ccb.tar.bz2 yuzu-64815a8b1609e874d5e3f403c93c8456bd4a9ccb.tar.lz yuzu-64815a8b1609e874d5e3f403c93c8456bd4a9ccb.tar.xz yuzu-64815a8b1609e874d5e3f403c93c8456bd4a9ccb.tar.zst yuzu-64815a8b1609e874d5e3f403c93c8456bd4a9ccb.zip |
Diffstat (limited to '')
-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 |