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:
parent
bf1537da8b
commit
2f1d068abd
|
@ -1925,7 +1925,6 @@ static void test_GetTokenInformation(void)
|
|||
is_app_container = 0xdeadbeef;
|
||||
ret = GetTokenInformation(token, TokenIsAppContainer, &is_app_container,
|
||||
sizeof(is_app_container), &size);
|
||||
todo_wine
|
||||
ok(ret || broken(GetLastError() == ERROR_INVALID_PARAMETER ||
|
||||
GetLastError() == ERROR_INVALID_FUNCTION), /* pre-win8 */
|
||||
"GetTokenInformation failed: %u\n", GetLastError());
|
||||
|
|
|
@ -280,7 +280,7 @@ NTSTATUS WINAPI NtQueryInformationToken(
|
|||
0, /* TokenUIAccess */
|
||||
0, /* TokenMandatoryPolicy */
|
||||
0, /* TokenLogonSid */
|
||||
0, /* TokenIsAppContainer */
|
||||
sizeof(DWORD), /* TokenIsAppContainer */
|
||||
0, /* TokenCapabilities */
|
||||
sizeof(TOKEN_APPCONTAINER_INFORMATION) + sizeof(SID), /* TokenAppContainerSid */
|
||||
0, /* TokenAppContainerNumber */
|
||||
|
@ -541,6 +541,12 @@ NTSTATUS WINAPI NtQueryInformationToken(
|
|||
container->TokenAppContainer = NULL;
|
||||
}
|
||||
break;
|
||||
case TokenIsAppContainer:
|
||||
{
|
||||
TRACE("TokenIsAppContainer semi-stub\n");
|
||||
*(DWORD*)tokeninfo = 0;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
ERR("Unhandled Token Information class %d!\n", tokeninfoclass);
|
||||
|
|
Loading…
Reference in New Issue