Commit 2f1d068a authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

ntdll: Added TokenIsAppContainer semi-stub implementation.

parent bf1537da
...@@ -1925,7 +1925,6 @@ static void test_GetTokenInformation(void) ...@@ -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());
......
...@@ -280,7 +280,7 @@ NTSTATUS WINAPI NtQueryInformationToken( ...@@ -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( ...@@ -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);
......
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