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
c540c98d
Commit
c540c98d
authored
Aug 28, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Aug 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usbd.sys: Add partial USBD_ValidateConfigurationDescriptor implementation.
parent
89ab0e4b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
usbd.c
dlls/usbd.sys/usbd.c
+20
-0
usbd.sys.spec
dlls/usbd.sys/usbd.sys.spec
+2
-0
usbdlib.h
include/ddk/usbdlib.h
+1
-0
No files found.
dlls/usbd.sys/usbd.c
View file @
c540c98d
...
...
@@ -218,6 +218,26 @@ PUSB_COMMON_DESCRIPTOR WINAPI USBD_ParseDescriptors(
return
NULL
;
}
USBD_STATUS
WINAPI
USBD_ValidateConfigurationDescriptor
(
PUSB_CONFIGURATION_DESCRIPTOR
descr
,
ULONG
length
,
USHORT
level
,
PUCHAR
*
offset
,
ULONG
tag
)
{
FIXME
(
"(%p, %u, %u, %p, %u) partial stub!"
,
descr
,
length
,
level
,
offset
,
tag
);
if
(
offset
)
*
offset
=
0
;
if
(
!
descr
||
length
<
sizeof
(
USB_CONFIGURATION_DESCRIPTOR
)
||
descr
->
bLength
<
sizeof
(
USB_CONFIGURATION_DESCRIPTOR
)
||
descr
->
wTotalLength
<
descr
->
bNumInterfaces
*
sizeof
(
USB_CONFIGURATION_DESCRIPTOR
)
)
return
USBD_STATUS_ERROR
;
return
USBD_STATUS_SUCCESS
;
}
ULONG
WINAPI
USBD_GetInterfaceLength
(
PUSB_INTERFACE_DESCRIPTOR
InterfaceDescriptor
,
PUCHAR
BufferEnd
)
...
...
dlls/usbd.sys/usbd.sys.spec
View file @
c540c98d
...
...
@@ -16,6 +16,7 @@
@ stub USBD_GetDeviceInformation
@ stdcall USBD_GetInterfaceLength(ptr ptr)
@ stub USBD_GetPdoRegistryParameter
@ stub USBD_GetRegistryKeyValue
@ stub USBD_GetSuspendPowerState
@ stdcall USBD_GetUSBDIVersion(ptr)
@ stub USBD_InitializeDevice
...
...
@@ -30,4 +31,5 @@
@ stub USBD_RemoveDevice
@ stub USBD_RestoreDevice
@ stub USBD_SetSuspendPowerState
@ stdcall USBD_ValidateConfigurationDescriptor(ptr long long ptr long)
@ stub USBD_WaitDeviceMutex
include/ddk/usbdlib.h
View file @
c540c98d
...
...
@@ -31,5 +31,6 @@ ULONG WINAPI USBD_GetInterfaceLength(PUSB_INTERFACE_DESCRIPTOR,PUCHAR);
VOID
WINAPI
USBD_GetUSBDIVersion
(
PUSBD_VERSION_INFORMATION
);
PUSB_COMMON_DESCRIPTOR
WINAPI
USBD_ParseDescriptors
(
PVOID
,
ULONG
,
PVOID
,
LONG
);
PUSB_INTERFACE_DESCRIPTOR
WINAPI
USBD_ParseConfigurationDescriptorEx
(
PUSB_CONFIGURATION_DESCRIPTOR
,
PVOID
,
LONG
,
LONG
,
LONG
,
LONG
,
LONG
);
USBD_STATUS
WINAPI
USBD_ValidateConfigurationDescriptor
(
PUSB_CONFIGURATION_DESCRIPTOR
,
ULONG
,
USHORT
,
PUCHAR
*
,
ULONG
);
#endif
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