From 732714349ea043f0e09e1c52a568f64790da0849 Mon Sep 17 00:00:00 2001 From: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Date: Mon, 17 Jul 2023 20:47:47 +0200 Subject: [PATCH] [Hotfix] sockets: Resolve empty port requests to 0 again (#5459) --- src/Ryujinx.HLE/HOS/Services/Sockets/Sfdnsres/IResolver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ryujinx.HLE/HOS/Services/Sockets/Sfdnsres/IResolver.cs b/src/Ryujinx.HLE/HOS/Services/Sockets/Sfdnsres/IResolver.cs index 93960d13e3..d0fb6675ae 100644 --- a/src/Ryujinx.HLE/HOS/Services/Sockets/Sfdnsres/IResolver.cs +++ b/src/Ryujinx.HLE/HOS/Services/Sockets/Sfdnsres/IResolver.cs @@ -586,7 +586,7 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Sfdnsres if (hostEntry != null) { - if (int.TryParse(service, out int port)) + if (int.TryParse(service, out int port) || string.IsNullOrEmpty(service)) { errno = GaiError.Success; serializedSize = SerializeAddrInfos(context, responseBufferPosition, responseBufferSize, hostEntry, port);