secur32: Implement more GetUserNameEx() formats.

This commit is contained in:
Ge van Geldorp 2009-04-11 20:44:40 +02:00 committed by Alexandre Julliard
parent 6643049116
commit d31bb3f08d
1 changed files with 2 additions and 8 deletions

View File

@ -1097,12 +1097,6 @@ BOOLEAN WINAPI GetUserNameExW(
DWORD len;
TRACE("(%d %p %p)\n", NameFormat, lpNameBuffer, nSize);
if (NameFormat == NameUnknown)
{
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
switch (NameFormat)
{
case NameSamCompatible:
@ -1135,6 +1129,7 @@ BOOLEAN WINAPI GetUserNameExW(
status = FALSE;
}
break;
case NameUnknown:
case NameFullyQualifiedDN:
case NameDisplay:
case NameUniqueId:
@ -1143,8 +1138,7 @@ BOOLEAN WINAPI GetUserNameExW(
case NameCanonicalEx:
case NameServicePrincipal:
case NameDnsDomain:
FIXME("NameFormat %d not implemented\n", NameFormat);
SetLastError(ERROR_CANT_ACCESS_DOMAIN_INFO);
SetLastError(ERROR_NONE_MAPPED);
status = FALSE;
break;
default: