From ec12d9b657ce34891640749309f038892982c635 Mon Sep 17 00:00:00 2001 From: Silent Date: Sun, 31 Dec 2023 11:51:03 +0100 Subject: [PATCH] PCAP: Fix a regression from #10448 --- pcsx2/DEV9/pcap_io.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/DEV9/pcap_io.cpp b/pcsx2/DEV9/pcap_io.cpp index bd38c48846..dab94c77e2 100644 --- a/pcsx2/DEV9/pcap_io.cpp +++ b/pcsx2/DEV9/pcap_io.cpp @@ -211,7 +211,7 @@ std::vector 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; @@ -228,7 +228,7 @@ std::vector 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