Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
57bfaa75
Commit
57bfaa75
authored
Jul 17, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usbd.sys: Use nameless unions/structs.
parent
72ee10b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
usbd.c
dlls/usbd.sys/usbd.c
+5
-7
No files found.
dlls/usbd.sys/usbd.c
View file @
57bfaa75
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment