Skip to content

Commit d910263

Browse files
committed
Update DnsQuery flags
1 parent ab5a1ff commit d910263

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ProcessHacker/netprv.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ PPH_STRING PhpGetIp4ReverseNameFromAddress(
356356
)
357357
{
358358
return PhFormatString(
359-
L"%u.%u.%u.%u.%s",
359+
L"%hhu.%hhu.%hhu.%hhu.%s",
360360
Address.s_impno,
361361
Address.s_lh,
362362
Address.s_host,
@@ -377,7 +377,7 @@ PPH_STRING PhpGetIp6ReverseNameFromAddress(
377377
{
378378
PhAppendFormatStringBuilder(
379379
&stringBuilder,
380-
L"%x.%x.",
380+
L"%hhx.%hhx.",
381381
Address.s6_addr[i] & 0xF,
382382
(Address.s6_addr[i] >> 4) & 0xF
383383
);
@@ -412,7 +412,7 @@ PPH_STRING PhGetHostNameFromAddressEx(
412412
DnsQuery(
413413
addressReverse->Buffer,
414414
DNS_TYPE_PTR,
415-
DNS_QUERY_BYPASS_CACHE | DNS_QUERY_NO_HOSTS_FILE,
415+
DNS_QUERY_NO_HOSTS_FILE, // DNS_QUERY_BYPASS_CACHE
416416
NULL,
417417
&addressResults,
418418
NULL

0 commit comments

Comments
 (0)