Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
3c58b1a6
Commit
3c58b1a6
authored
Jun 24, 2010
by
Francois Gouget
Committed by
Alexandre Julliard
Jun 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usbd.sys: Fix the test for type control endpoints.
The value of USB_ENDPOINT_TYPE_CONTROL is 0 so and-ing with it makes no sense.
parent
7bf45b4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
usbd.c
dlls/usbd.sys/usbd.c
+11
-4
No files found.
dlls/usbd.sys/usbd.c
View file @
3c58b1a6
...
...
@@ -125,14 +125,21 @@ PURB WINAPI USBD_CreateConfigurationRequestEx(
interfaceInfo
->
Pipes
[
i
].
MaximumPacketSize
=
endpointDescriptor
->
wMaxPacketSize
;
interfaceInfo
->
Pipes
[
i
].
EndpointAddress
=
endpointDescriptor
->
bEndpointAddress
;
interfaceInfo
->
Pipes
[
i
].
Interval
=
endpointDescriptor
->
bInterval
;
if
(
endpointDescriptor
->
bmAttributes
&
USB_ENDPOINT_TYPE_CONTROL
)
switch
(
endpointDescriptor
->
bmAttributes
&
USB_ENDPOINT_TYPE_MASK
)
{
case
USB_ENDPOINT_TYPE_CONTROL
:
interfaceInfo
->
Pipes
[
i
].
PipeType
=
UsbdPipeTypeControl
;
else
if
(
endpointDescriptor
->
bmAttributes
&
USB_ENDPOINT_TYPE_BULK
)
break
;
case
USB_ENDPOINT_TYPE_BULK
:
interfaceInfo
->
Pipes
[
i
].
PipeType
=
UsbdPipeTypeBulk
;
else
if
(
endpointDescriptor
->
bmAttributes
&
USB_ENDPOINT_TYPE_INTERRUPT
)
break
;
case
USB_ENDPOINT_TYPE_INTERRUPT
:
interfaceInfo
->
Pipes
[
i
].
PipeType
=
UsbdPipeTypeInterrupt
;
else
if
(
endpointDescriptor
->
bmAttributes
&
USB_ENDPOINT_TYPE_ISOCHRONOUS
)
break
;
case
USB_ENDPOINT_TYPE_ISOCHRONOUS
:
interfaceInfo
->
Pipes
[
i
].
PipeType
=
UsbdPipeTypeIsochronous
;
break
;
}
endpointDescriptor
=
(
PUSB_ENDPOINT_DESCRIPTOR
)
USBD_ParseDescriptors
(
ConfigurationDescriptor
,
ConfigurationDescriptor
->
wTotalLength
,
endpointDescriptor
+
1
,
USB_ENDPOINT_DESCRIPTOR_TYPE
);
...
...
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