Perform host name initialization if computer name can't be read from

registry.
This commit is contained in:
Dmitry Timoshkov 2004-12-06 11:38:25 +00:00 committed by Alexandre Julliard
parent 0ff7203335
commit 902cb4201b
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ void COMPUTERNAME_Init (void)
st = NtQueryValueKey( hsubkey, &nameW, KeyValuePartialInformation, buf, len, &len );
if ( st == STATUS_OBJECT_NAME_NOT_FOUND || ( st == STATUS_SUCCESS && get_use_dns_option()))
if ( st != STATUS_SUCCESS || get_use_dns_option() )
{
char hbuf[256];
int hlen = sizeof (hbuf);