mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 01:11:03 +08:00
[NTDLL_APITEST] Minor formatting for probelib.c
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user