[USBPORT] Type-safe function signature (PVOID -> PUSBPORT_xxx).

This commit is contained in:
Vadim Galyant 2017-11-23 20:14:06 +09:00 committed by Thomas Faber
parent a913501626
commit 73bfc3c897
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
5 changed files with 89 additions and 84 deletions

View file

@ -1524,7 +1524,7 @@ USBPORT_RestoreDevice(IN PDEVICE_OBJECT FdoDevice,
PUSBPORT_DEVICE_EXTENSION FdoExtension;
PLIST_ENTRY iHandleList;
PUSBPORT_ENDPOINT Endpoint;
ULONG EndpointRequirements[2] = {0};
USBPORT_ENDPOINT_REQUIREMENTS EndpointRequirements = {0};
USB_DEFAULT_PIPE_SETUP_PACKET SetupPacket;
NTSTATUS Status = STATUS_SUCCESS;
USBD_STATUS USBDStatus;
@ -1707,7 +1707,7 @@ USBPORT_RestoreDevice(IN PDEVICE_OBJECT FdoDevice,
Packet->QueryEndpointRequirements(FdoExtension->MiniPortExt,
&Endpoint->EndpointProperties,
EndpointRequirements);
&EndpointRequirements);
KeReleaseSpinLock(&FdoExtension->MiniportSpinLock,
OldIrql);