Skip to content

Commit

Permalink
More token support
Browse files Browse the repository at this point in the history
  • Loading branch information
momo5502 committed Nov 3, 2024
1 parent bd8697f commit 690f314
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/windows-emulator/syscalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,15 @@ namespace
const uint64_t token_information, const ULONG token_information_length,
const emulator_object<ULONG> return_length)
{
if (token_handle != ~3ULL)
if (token_handle != ~3ULL // NtCurrentProcessToken
&& token_handle != ~4ULL // NtCurrentThreadToken
&& token_handle != ~5ULL // NtCurrentThreadEffectiveToken
)
{
return STATUS_NOT_SUPPORTED;
}

if (token_information_class == TokenUser)
{
return STATUS_NOT_SUPPORTED;
}
Expand All @@ -1698,7 +1706,8 @@ namespace
return STATUS_SUCCESS;
}

printf("Unsupported token info class: %X\n", token_information_class);
printf("Unsupported token info class: %lX\n", token_information_class);
c.emu.stop();
return STATUS_NOT_SUPPORTED;
}

Expand Down

0 comments on commit 690f314

Please sign in to comment.