[NTDLL_APITEST] Minor formatting for probelib.c

This commit is contained in:
Hermès Bélusca-Maïto
2026-03-29 16:37:42 +02:00
parent 3dc66309d1
commit a2a434e8d5
2 changed files with 2 additions and 16 deletions

View File

@@ -49,7 +49,7 @@ QuerySetProcessValidator(
* which equates to the image filename of the process. Such status
* is returned in an invalid address query (STATUS_ACCESS_VIOLATION)
* where the function expects STATUS_INFO_LENGTH_MISMATCH instead.
*/
*/
case ProcessImageFileName:
{
SpecialStatus = STATUS_INFO_LENGTH_MISMATCH;
@@ -60,13 +60,9 @@ QuerySetProcessValidator(
case ProcessUserModeIOPL:
{
if (ExpectedStatus == STATUS_INFO_LENGTH_MISMATCH)
{
SpecialStatus = STATUS_ACCESS_VIOLATION;
}
else
{
SpecialStatus = STATUS_INVALID_INFO_CLASS;
}
break;
}
@@ -87,9 +83,7 @@ QuerySetProcessValidator(
case ProcessForegroundInformation:
{
if (ExpectedStatus != STATUS_DATATYPE_MISALIGNMENT)
{
SpecialStatus = STATUS_INVALID_INFO_CLASS;
}
break;
}
@@ -98,9 +92,7 @@ QuerySetProcessValidator(
{
/* Need to fix up the length */
if (InfoLength == sizeof(UNICODE_STRING))
{
InfoLength += MAX_PATH * sizeof(WCHAR);
}
/* Fall through */
}
case ProcessIoPriority:
@@ -115,9 +107,7 @@ QuerySetProcessValidator(
case ProcessMemoryAllocationMode:
{
if (GetNTVersion() < _WIN32_WINNT_VISTA)
{
SpecialStatus = STATUS_INVALID_INFO_CLASS;
}
break;
}
@@ -173,13 +163,9 @@ QuerySetProcessValidator(
case ProcessUserModeIOPL:
{
if (ExpectedStatus == STATUS_INFO_LENGTH_MISMATCH)
{
SpecialStatus = STATUS_ACCESS_VIOLATION;
}
else
{
SpecialStatus = STATUS_PRIVILEGE_NOT_HELD;
}
break;
}

View File

@@ -54,7 +54,7 @@
* or the actual class is not present in the class list array.
*
* STATUS_INFO_LENGTH_MISMATCH -- Indicates the information length doesn't match with
* the one that the information class itself expects. This is the case with classes
* the one that the information class itself expects. This is the case with classes where
* ICIF_SET_SIZE_VARIABLE is not set, which means that the class requires a fixed
* length size.
*