mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-18 20:36:40 +00:00
[Hotfix] sockets: Resolve empty port requests to 0 again (#5459)
This commit is contained in:
parent
016262514d
commit
732714349e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue