[Hotfix] sockets: Resolve empty port requests to 0 again (#5459)

This commit is contained in:
TSRBerry 2023-07-17 20:47:47 +02:00 committed by Matt Heins
parent 3bdbf2073b
commit 53523b3ac6

View file

@ -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);