[ros-dev] [ros-diffs] [sginsberg] 55813: Some misc fixes to Prefast. [DDK] - ndis.h Don't use local variables with the same name as function parameters. [PSDK] - access.idl Remove incorrect annotation - usbioctl.h Not r...
Timo Kreuzer
timo.kreuzer at web.de
Thu Feb 23 14:56:33 UTC 2012
These are not correct.
Am 22.02.2012 21:58, schrieb sginsberg at svn.reactos.org:
> Author: sginsberg
> Date: Wed Feb 22 20:58:20 2012
> New Revision: 55813
>
>
>
> Modified: trunk/reactos/include/psdk/usbioctl.h
> URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/usbioctl.h?rev=55813&r1=55812&r2=55813&view=diff
> ==============================================================================
> --- trunk/reactos/include/psdk/usbioctl.h [iso-8859-1] (original)
> +++ trunk/reactos/include/psdk/usbioctl.h [iso-8859-1] Wed Feb 22 20:58:20 2012
> @@ -295,34 +295,34 @@
> USHORT DeviceAddress;
> ULONG NumberOfOpenPipes;
> USB_CONNECTION_STATUS ConnectionStatus;
> - USB_PIPE_INFO PipeList[0];
> + USB_PIPE_INFO PipeList[ANYSIZE_ARRAY];
> } USB_NODE_CONNECTION_INFORMATION, *PUSB_NODE_CONNECTION_INFORMATION;
>
>
> typedef struct _USB_DESCRIPTOR_REQUEST {
> @@ -334,7 +334,7 @@
> USHORT wIndex;
> USHORT wLength;
> } SetupPacket;
> - UCHAR Data[0];
> + UCHAR Data[ANYSIZE_ARRAY];
> } USB_DESCRIPTOR_REQUEST, *PUSB_DESCRIPTOR_REQUEST;
>
> #if (_WIN32_WINNT>= 0x0501)
> @@ -358,7 +358,7 @@
> USHORT DeviceAddress;
> ULONG NumberOfOpenPipes;
> USB_CONNECTION_STATUS ConnectionStatus;
> - USB_PIPE_INFO PipeList[0];
> + USB_PIPE_INFO PipeList[ANYSIZE_ARRAY];
> } USB_NODE_CONNECTION_INFORMATION_EX, *PUSB_NODE_CONNECTION_INFORMATION_EX;
>
> C_ASSERT(sizeof(USB_NODE_CONNECTION_INFORMATION_EX) == sizeof(USB_NODE_CONNECTION_INFORMATION));
More information about the Ros-dev
mailing list