diff --git a/reactos/dll/win32/iphlpapi/resinfo_reactos.c b/reactos/dll/win32/iphlpapi/resinfo_reactos.c index c20a8fe32d5..a9516582038 100644 --- a/reactos/dll/win32/iphlpapi/resinfo_reactos.c +++ b/reactos/dll/win32/iphlpapi/resinfo_reactos.c @@ -125,8 +125,12 @@ void EnumNameServers( HANDLE RegHandle, PWCHAR Interface, PVOID Data, EnumNameServersFunc cb ) { PWCHAR NameServerString = QueryRegistryValueString(RegHandle, L"NameServer"); - /* Now, count the non-empty comma separated */ + + if (!NameServerString) + NameServerString = QueryRegistryValueString(RegHandle, L"DhcpNameServer"); + if (NameServerString) { + /* Now, count the non-empty comma separated */ DWORD ch; DWORD LastNameStart = 0; for (ch = 0; NameServerString[ch]; ch++) {