ntdll: Added TokenIsAppContainer semi-stub implementation.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2016-11-15 14:21:35 -06:00 committed by Alexandre Julliard
parent bf1537da8b
commit 2f1d068abd
2 changed files with 7 additions and 2 deletions

View File

@ -1925,7 +1925,6 @@ static void test_GetTokenInformation(void)
is_app_container = 0xdeadbeef; is_app_container = 0xdeadbeef;
ret = GetTokenInformation(token, TokenIsAppContainer, &is_app_container, ret = GetTokenInformation(token, TokenIsAppContainer, &is_app_container,
sizeof(is_app_container), &size); sizeof(is_app_container), &size);
todo_wine
ok(ret || broken(GetLastError() == ERROR_INVALID_PARAMETER || ok(ret || broken(GetLastError() == ERROR_INVALID_PARAMETER ||
GetLastError() == ERROR_INVALID_FUNCTION), /* pre-win8 */ GetLastError() == ERROR_INVALID_FUNCTION), /* pre-win8 */
"GetTokenInformation failed: %u\n", GetLastError()); "GetTokenInformation failed: %u\n", GetLastError());

View File

@ -280,7 +280,7 @@ NTSTATUS WINAPI NtQueryInformationToken(
0, /* TokenUIAccess */ 0, /* TokenUIAccess */
0, /* TokenMandatoryPolicy */ 0, /* TokenMandatoryPolicy */
0, /* TokenLogonSid */ 0, /* TokenLogonSid */
0, /* TokenIsAppContainer */ sizeof(DWORD), /* TokenIsAppContainer */
0, /* TokenCapabilities */ 0, /* TokenCapabilities */
sizeof(TOKEN_APPCONTAINER_INFORMATION) + sizeof(SID), /* TokenAppContainerSid */ sizeof(TOKEN_APPCONTAINER_INFORMATION) + sizeof(SID), /* TokenAppContainerSid */
0, /* TokenAppContainerNumber */ 0, /* TokenAppContainerNumber */
@ -541,6 +541,12 @@ NTSTATUS WINAPI NtQueryInformationToken(
container->TokenAppContainer = NULL; container->TokenAppContainer = NULL;
} }
break; break;
case TokenIsAppContainer:
{
TRACE("TokenIsAppContainer semi-stub\n");
*(DWORD*)tokeninfo = 0;
break;
}
default: default:
{ {
ERR("Unhandled Token Information class %d!\n", tokeninfoclass); ERR("Unhandled Token Information class %d!\n", tokeninfoclass);