[NTOS:OB] Fix the SAL2 annotation of ObQueryTypeInfo

The data has to be written into ObjectTypeInfo based on the return length,
not only what is provided by the input buffer length. Fix suggested by
Hermès.
This commit is contained in:
George Bișoc 2023-04-22 17:18:57 +02:00
parent 00c69bcd15
commit 8e7b22a631
No known key found for this signature in database
GPG Key ID: 688C4FBE25D7DEF6
1 changed files with 2 additions and 1 deletions

View File

@ -946,7 +946,8 @@ NTSTATUS
NTAPI
ObQueryTypeInfo(
_In_ POBJECT_TYPE ObjectType,
_Out_writes_bytes_(Length) POBJECT_TYPE_INFORMATION ObjectTypeInfo,
_Out_writes_bytes_to_(Length, *ReturnLength)
POBJECT_TYPE_INFORMATION ObjectTypeInfo,
_In_ ULONG Length,
_Out_ PULONG ReturnLength)
{