Commit 57bfaa75 authored by Alexandre Julliard's avatar Alexandre Julliard

usbd.sys: Use nameless unions/structs.

parent 72ee10b5
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
#include <stdarg.h> #include <stdarg.h>
#define NONAMELESSUNION
#include "ntstatus.h" #include "ntstatus.h"
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
#include "windef.h" #include "windef.h"
...@@ -66,7 +64,7 @@ PURB WINAPI USBD_CreateConfigurationRequest( ...@@ -66,7 +64,7 @@ PURB WINAPI USBD_CreateConfigurationRequest(
} }
urb = USBD_CreateConfigurationRequestEx( ConfigurationDescriptor, interfaceList ); urb = USBD_CreateConfigurationRequestEx( ConfigurationDescriptor, interfaceList );
if (urb) if (urb)
*Siz = urb->u.UrbHeader.Length; *Siz = urb->UrbHeader.Length;
ExFreePool( interfaceList ); ExFreePool( interfaceList );
} }
return urb; return urb;
...@@ -98,10 +96,10 @@ PURB WINAPI USBD_CreateConfigurationRequestEx( ...@@ -98,10 +96,10 @@ PURB WINAPI USBD_CreateConfigurationRequestEx(
USBD_INTERFACE_INFORMATION *interfaceInfo; USBD_INTERFACE_INFORMATION *interfaceInfo;
RtlZeroMemory( urb, size ); RtlZeroMemory( urb, size );
urb->u.UrbSelectConfiguration.Hdr.Length = size; urb->UrbSelectConfiguration.Hdr.Length = size;
urb->u.UrbSelectConfiguration.Hdr.Function = URB_FUNCTION_SELECT_CONFIGURATION; urb->UrbSelectConfiguration.Hdr.Function = URB_FUNCTION_SELECT_CONFIGURATION;
urb->u.UrbSelectConfiguration.ConfigurationDescriptor = ConfigurationDescriptor; urb->UrbSelectConfiguration.ConfigurationDescriptor = ConfigurationDescriptor;
interfaceInfo = &urb->u.UrbSelectConfiguration.Interface; interfaceInfo = &urb->UrbSelectConfiguration.Interface;
for (interfaceEntry = InterfaceList; interfaceEntry->InterfaceDescriptor; interfaceEntry++) for (interfaceEntry = InterfaceList; interfaceEntry->InterfaceDescriptor; interfaceEntry++)
{ {
ULONG i; ULONG i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment