Commit 7cca72e3 authored by Karl Heuer's avatar Karl Heuer

Change Vuser_real_name to Vuser_real_login_name.

parent 43f657ea
......@@ -683,25 +683,25 @@ Keep this around...we might need it later.
SID_NAME_USE User;
if (1)
Vuser_real_name = build_string ("foo");
Vuser_real_login_name = build_string ("foo");
else if (!OpenProcessToken (GetCurrentProcess (), TOKEN_QUERY, &Token))
{
Vuser_real_name = build_string ("unknown");
Vuser_real_login_name = build_string ("unknown");
}
else if (!GetTokenInformation (Token, TokenUser, (PVOID)b, 256,
&trash))
{
CloseHandle (Token);
Vuser_real_name = build_string ("unknown");
Vuser_real_login_name = build_string ("unknown");
}
else if (!LookupAccountSid ((void *)0, (PSID)b, Name, &length, RefD,
&rlength, &User))
{
CloseHandle (Token);
Vuser_real_name = build_string ("unknown");
Vuser_real_login_name = build_string ("unknown");
}
else
Vuser_real_name = build_string (Name);
Vuser_real_login_name = build_string (Name);
}
#else /* not WINDOWSNT */
#endif /* not WINDOWSNT */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment