Commit d31bb3f0 authored by Ge van Geldorp's avatar Ge van Geldorp Committed by Alexandre Julliard

secur32: Implement more GetUserNameEx() formats.

parent 66430491
......@@ -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:
......
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