From c7a2132d6373dd18d8bffe560e88aa38602ec412 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 19 Feb 2017 11:34:00 +0000 Subject: [PATCH] [DNSAPI] Properly check for domain name being set CID 1401080 svn path=/trunk/; revision=73837 --- reactos/dll/win32/dnsapi/dnsapi/query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/dnsapi/dnsapi/query.c b/reactos/dll/win32/dnsapi/dnsapi/query.c index 7044fa04b18..a5e2e75bdda 100644 --- a/reactos/dll/win32/dnsapi/dnsapi/query.c +++ b/reactos/dll/win32/dnsapi/dnsapi/query.c @@ -346,7 +346,7 @@ CheckForCurrentHostname(CONST CHAR * Name, PFIXED_INFO network_info) PIP_ADAPTER_ADDRESSES Addresses = NULL, pip; BOOL Found = FALSE; - if (network_info->DomainName) + if (network_info->DomainName[0]) { size_t StringLength; size_t TempSize = 2; -- 2.17.1