windows-logon-20050323

Fix initialization error when getting domain parameters
This commit is contained in:
Jeffrey Altman 2005-03-23 22:31:13 +00:00
parent ef8eb1aef6
commit d33cd7595b

View File

@ -325,6 +325,8 @@ GetDomainLogonOptions( PLUID lpLogonId, char * username, char * domain, LogonOpt
char computerName[MAX_COMPUTERNAME_LENGTH + 1]; char computerName[MAX_COMPUTERNAME_LENGTH + 1];
char *effDomain; char *effDomain;
memset(opt, 0, sizeof(LogonOptions_t));
DebugEvent("In GetDomainLogonOptions for user [%s] in domain [%s]", username, domain); DebugEvent("In GetDomainLogonOptions for user [%s] in domain [%s]", username, domain);
/* If the domain is the same as the Netbios computer name, we use the LOCALHOST domain name*/ /* If the domain is the same as the Netbios computer name, we use the LOCALHOST domain name*/
opt->flags = LOGON_FLAG_REMOTE; opt->flags = LOGON_FLAG_REMOTE;