diff --git a/modules/rostests/apitests/ntdll/probelib.c b/modules/rostests/apitests/ntdll/probelib.c index e3ce8b3d16f..79ad7e97312 100644 --- a/modules/rostests/apitests/ntdll/probelib.c +++ b/modules/rostests/apitests/ntdll/probelib.c @@ -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; } diff --git a/ntoskrnl/include/internal/probe.h b/ntoskrnl/include/internal/probe.h index ff1d3c5275b..f5b62dd4735 100644 --- a/ntoskrnl/include/internal/probe.h +++ b/ntoskrnl/include/internal/probe.h @@ -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. *