- strcat(host_name, ".");
- strcat(host_name, domain_name);
+ skip("Not enough memory. Can't continue!\n");
+ return;
+ }
+
+ network_info_result = GetNetworkParams(network_info, &network_info_blen);
+ if (network_info_result != ERROR_SUCCESS)
+ {
+ HeapFree(GetProcessHeap(), 0, network_info);
+ skip("Can't get network info. Some results may be wrong.\n");
+ return;
+ }
+ else
+ {
+ strcpy(host_name, network_info->HostName);
+ if (strlen(network_info->DomainName))
+ {
+ strcat(host_name, ".");
+ strcat(host_name, network_info->DomainName);
+ }
+ HeapFree(GetProcessHeap(), 0, network_info);
+ mbstowcs(host_nameW, host_name, 255);