[DNSAPI]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 19 Feb 2017 11:34:00 +0000 (11:34 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 19 Feb 2017 11:34:00 +0000 (11:34 +0000)
Properly check for domain name being set

CID 1401080

svn path=/trunk/; revision=73837

reactos/dll/win32/dnsapi/dnsapi/query.c

index 7044fa0..a5e2e75 100644 (file)
@@ -346,7 +346,7 @@ CheckForCurrentHostname(CONST CHAR * Name, PFIXED_INFO network_info)
     PIP_ADAPTER_ADDRESSES Addresses = NULL, pip;
     BOOL Found = FALSE;
 
     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;
     {
         size_t StringLength;
         size_t TempSize = 2;