From 24c23c8de2dc40adcb5f3fa07e41a281d86849dc Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Thu, 1 Aug 2013 14:35:54 +0000 Subject: [PATCH] [DDK] * Fix annotations for INSTANCE_BASIC_INFORMATION, INSTANCE_PARTIAL_INFORMATION and INSTANCE_FULL_INFORMATION. svn path=/trunk/; revision=59610 --- reactos/include/ddk/fltuserstructures.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/reactos/include/ddk/fltuserstructures.h b/reactos/include/ddk/fltuserstructures.h index 8b5ed75c901..b70337d6ec0 100644 --- a/reactos/include/ddk/fltuserstructures.h +++ b/reactos/include/ddk/fltuserstructures.h @@ -195,15 +195,17 @@ typedef struct _FILTER_VOLUME_BASIC_INFORMATION { WCHAR FilterVolumeName[1]; } FILTER_VOLUME_BASIC_INFORMATION, *PFILTER_VOLUME_BASIC_INFORMATION; +typedef _Struct_size_bytes_(sizeof(INSTANCE_BASIC_INFORMATION) * InstanceNameLength) -typedef struct _INSTANCE_BASIC_INFORMATION { +struct _INSTANCE_BASIC_INFORMATION { ULONG NextEntryOffset; USHORT InstanceNameLength; USHORT InstanceNameBufferOffset; } INSTANCE_BASIC_INFORMATION, *PINSTANCE_BASIC_INFORMATION; +typedef _Struct_size_bytes_(sizeof(INSTANCE_PARTIAL_INFORMATION) + InstanceNameLength + AltitudeLength) -typedef struct _INSTANCE_PARTIAL_INFORMATION { +struct _INSTANCE_PARTIAL_INFORMATION { ULONG NextEntryOffset; USHORT InstanceNameLength; USHORT InstanceNameBufferOffset; @@ -211,8 +213,9 @@ typedef struct _INSTANCE_PARTIAL_INFORMATION { USHORT AltitudeBufferOffset; } INSTANCE_PARTIAL_INFORMATION, *PINSTANCE_PARTIAL_INFORMATION; +typedef _Struct_size_bytes_(sizeof(INSTANCE_FULL_INFORMATION) + InstanceNameLength + AltitudeLength + VolumeNameLength + FilterNameLength) -typedef struct _INSTANCE_FULL_INFORMATION { +struct _INSTANCE_FULL_INFORMATION { ULONG NextEntryOffset; USHORT InstanceNameLength; USHORT InstanceNameBufferOffset;