Skip to content

Commit

Permalink
WiFi: Fix a bug where AdHoc connections would fail to read the socket…
Browse files Browse the repository at this point in the history
… on non-Windows systems.
  • Loading branch information
rogerman committed Aug 24, 2018
1 parent 5d384f9 commit 0aa8dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desmume/src/wifi.cpp
Expand Up @@ -1900,7 +1900,7 @@ void AdhocCommInterface::Trigger()
tv.tv_sec = 0;
tv.tv_usec = 0;

if (select(1, &fd, 0, 0, &tv))
if (select(thisSocket+1, &fd, NULL, NULL, &tv))
{
sockaddr_t fromAddr;
socklen_t fromLen = sizeof(sockaddr_t);
Expand Down

0 comments on commit 0aa8dad

Please sign in to comment.