Skip to content

Commit

Permalink
Update rpcs3/Emu/NP/np_handler.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: RipleyTom <[email protected]>
  • Loading branch information
Megamouse and RipleyTom authored Jun 12, 2023
1 parent fc9152d commit 668f247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcs3/Emu/NP/np_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ namespace np
bool np_handler::discover_ip_address()
{
auto sockfd = socket(AF_INET, SOCK_DGRAM, 0);
if (!sockfd)
if (sockfd == -1)
{
nph_log.error("Creating socket to discover local ip failed: %d", get_native_error());
return false;
Expand Down

0 comments on commit 668f247

Please sign in to comment.