mirror of
https://github.com/reactos/reactos.git
synced 2026-06-08 17:02:56 +08:00
[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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user