mirror of https://github.com/PCSX2/pcsx2.git
DEV9: Formatting
This commit is contained in:
parent
02f27f8cbc
commit
839ea61d55
|
@ -202,7 +202,7 @@ namespace InternalServers
|
||||||
bool DNS_Server::CheckHostList(std::string url, DNS_State* state)
|
bool DNS_Server::CheckHostList(std::string url, DNS_State* state)
|
||||||
{
|
{
|
||||||
std::transform(url.begin(), url.end(), url.begin(),
|
std::transform(url.begin(), url.end(), url.begin(),
|
||||||
[](unsigned char c) { return std::tolower(c); });
|
[](unsigned char c) { return std::tolower(c); });
|
||||||
|
|
||||||
auto f = hosts.find(url);
|
auto f = hosts.find(url);
|
||||||
if (f != hosts.end())
|
if (f != hosts.end())
|
||||||
|
|
|
@ -419,9 +419,7 @@ std::vector<AdapterEntry> PCAPAdapter::GetAdapters()
|
||||||
pcap_if_t* d;
|
pcap_if_t* d;
|
||||||
|
|
||||||
if (pcap_findalldevs(&alldevs, errbuf) == -1)
|
if (pcap_findalldevs(&alldevs, errbuf) == -1)
|
||||||
{
|
|
||||||
return nic;
|
return nic;
|
||||||
}
|
|
||||||
|
|
||||||
d = alldevs;
|
d = alldevs;
|
||||||
while (d != NULL)
|
while (d != NULL)
|
||||||
|
@ -456,7 +454,7 @@ std::vector<AdapterEntry> PCAPAdapter::GetAdapters()
|
||||||
|
|
||||||
std::unique_ptr<wchar_t[]> buf = std::make_unique<wchar_t[]>(len_buf);
|
std::unique_ptr<wchar_t[]> buf = std::make_unique<wchar_t[]>(len_buf);
|
||||||
MultiByteToWideChar(CP_ACP, 0, d->description, len_desc, buf.get(), len_buf);
|
MultiByteToWideChar(CP_ACP, 0, d->description, len_desc, buf.get(), len_buf);
|
||||||
|
|
||||||
entry.name = StringUtil::WideStringToUTF8String(std::wstring(buf.get()));
|
entry.name = StringUtil::WideStringToUTF8String(std::wstring(buf.get()));
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue