From 5d8964331131f40be6eb748f02378b929508a476 Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Thu, 12 Nov 2020 01:22:46 +0100 Subject: [PATCH] [NTOS:OB] ObQueryDeviceMapInformation(): Fix annotations --- ntoskrnl/include/internal/ob.h | 6 +++--- ntoskrnl/ob/devicemap.c | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ntoskrnl/include/internal/ob.h b/ntoskrnl/include/internal/ob.h index 2ecd936d536..87a5d6901f0 100644 --- a/ntoskrnl/include/internal/ob.h +++ b/ntoskrnl/include/internal/ob.h @@ -299,9 +299,9 @@ ObpSetHandleAttributes( NTSTATUS NTAPI ObQueryDeviceMapInformation( - IN PEPROCESS Process, - OUT PPROCESS_DEVICEMAP_INFORMATION DeviceMapInfo, - IN ULONG Flags + _In_opt_ PEPROCESS Process, + _Out_ PPROCESS_DEVICEMAP_INFORMATION DeviceMapInfo, + _In_ ULONG Flags ); // diff --git a/ntoskrnl/ob/devicemap.c b/ntoskrnl/ob/devicemap.c index 0c54f6995b8..866ef66482d 100644 --- a/ntoskrnl/ob/devicemap.c +++ b/ntoskrnl/ob/devicemap.c @@ -536,9 +536,10 @@ ObInheritDeviceMap(IN PEPROCESS Parent, NTSTATUS NTAPI -ObQueryDeviceMapInformation(IN PEPROCESS Process, - IN PPROCESS_DEVICEMAP_INFORMATION DeviceMapInfo, - IN ULONG Flags) +ObQueryDeviceMapInformation( + _In_opt_ PEPROCESS Process, + _Out_ PPROCESS_DEVICEMAP_INFORMATION DeviceMapInfo, + _In_ ULONG Flags) { PDEVICE_MAP DeviceMap = NULL, GlobalDeviceMap; BOOLEAN Dereference;