Small fix

This commit is contained in:
Maurice Heumann
2025-04-07 22:01:33 +02:00
parent 0d9e03b673
commit 67d34b3988
6 changed files with 48 additions and 0 deletions

View File

@@ -1718,6 +1718,42 @@ namespace
return STATUS_SUCCESS;
}
if (info_class == ThreadPerformanceCount)
{
if (return_length)
{
return_length.write(sizeof(LARGE_INTEGER));
}
if (thread_information_length < sizeof(LARGE_INTEGER))
{
return STATUS_BUFFER_OVERFLOW;
}
const emulator_object<LARGE_INTEGER> info{c.emu, thread_information};
info.write({});
return STATUS_SUCCESS;
}
if (info_class == ThreadHideFromDebugger)
{
if (return_length)
{
return_length.write(sizeof(BOOLEAN));
}
if (thread_information_length < sizeof(BOOLEAN))
{
return STATUS_BUFFER_OVERFLOW;
}
const emulator_object<BOOLEAN> info{c.emu, thread_information};
info.write(0);
return STATUS_SUCCESS;
}
if (info_class == ThreadTimes)
{
if (return_length)