Skip to content

Commit

Permalink
PCAP: Fix a regression from #10448
Browse files Browse the repository at this point in the history
  • Loading branch information
CookiePLMonster authored and refractionpcsx2 committed Dec 31, 2023
1 parent f388de2 commit ec12d9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pcsx2/DEV9/pcap_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ std::vector<AdapterEntry> PCAPAdapter::GetAdapters()
entry.type = Pcsx2Config::DEV9Options::NetApi::PCAP_Switched;
#ifdef _WIN32
//guid
if (!std::string_view(d->name).ends_with(PCAPPREFIX))
if (!std::string_view(d->name).starts_with(PCAPPREFIX))
{
Console.Error("PCAP: Unexpected Device: ", d->name);
d = d->next;
Expand All @@ -228,7 +228,7 @@ std::vector<AdapterEntry> PCAPAdapter::GetAdapters()
else
{
//have to use description
//NPCAP 1.10 is using an version of pcap that dosn't
//NPCAP 1.10 is using a version of pcap that doesn't
//allow us to set it to use UTF8
//see https://github.com/nmap/npcap/issues/276
//We have to convert from ANSI to wstring, to then convert to UTF8
Expand Down

0 comments on commit ec12d9b

Please sign in to comment.