tangled
alpha
login
or
join now
huwcampbell.com
/
reactos
0
fork
atom
Reactos
0
fork
atom
overview
issues
pulls
pipelines
[USBPORT] Fix 64 bit issues
Timo Kreuzer
7 years ago
c1944118
ff7cc6f3
+10
-10
7 changed files
expand all
collapse all
unified
split
drivers
usb
usbport
device.c
endpoint.c
ioctl.c
pnp.c
roothub.c
usbport.c
sdk
include
reactos
drivers
usbport
usbmport.h
+3
-3
drivers/usb/usbport/device.c
reviewed
···
479
479
{
480
480
PUSB_INTERFACE_DESCRIPTOR Descriptor;
481
481
PUSBD_PIPE_INFORMATION Pipe;
482
482
-
USHORT Length;
482
482
+
SIZE_T Length;
483
483
ULONG PipeFlags;
484
484
ULONG NumberOfPipes;
485
485
USBD_STATUS USBDStatus = USBD_STATUS_SUCCESS;
···
971
971
BOOL IsOpenedPipe;
972
972
PVOID DeviceDescriptor;
973
973
USB_DEFAULT_PIPE_SETUP_PACKET SetupPacket;
974
974
-
SIZE_T TransferedLen;
975
975
-
SIZE_T DescriptorMinSize;
974
974
+
ULONG TransferedLen;
975
975
+
ULONG DescriptorMinSize;
976
976
UCHAR MaxPacketSize;
977
977
PUSBPORT_DEVICE_EXTENSION FdoExtension;
978
978
PUSBPORT_REGISTRATION_PACKET Packet;
+1
-1
drivers/usb/usbport/endpoint.c
reviewed
···
768
768
PUSBPORT_DEVICE_EXTENSION FdoExtension;
769
769
PUSBPORT_RHDEVICE_EXTENSION PdoExtension;
770
770
PUSBPORT_REGISTRATION_PACKET Packet;
771
771
-
ULONG EndpointSize;
771
771
+
SIZE_T EndpointSize;
772
772
PUSBPORT_ENDPOINT Endpoint;
773
773
PUSBPORT_ENDPOINT_PROPERTIES EndpointProperties;
774
774
PUSB_ENDPOINT_DESCRIPTOR EndpointDescriptor;
+1
-1
drivers/usb/usbport/ioctl.c
reviewed
···
210
210
NTAPI
211
211
USBPORT_GetUnicodeName(IN PDEVICE_OBJECT FdoDevice,
212
212
IN PIRP Irp,
213
213
-
IN PULONG Information)
213
213
+
IN PULONG_PTR Information)
214
214
{
215
215
PUSB_HCD_DRIVERKEY_NAME DriverKey;
216
216
PIO_STACK_LOCATION IoStack;
+2
-2
drivers/usb/usbport/pnp.c
reviewed
···
961
961
{
962
962
if (PortDescriptor->Flags & CM_RESOURCE_PORT_IO)
963
963
{
964
964
-
UsbPortResources->ResourceBase = (PVOID)PortDescriptor->u.Port.Start.LowPart;
964
964
+
UsbPortResources->ResourceBase = (PVOID)(ULONG_PTR)PortDescriptor->u.Port.Start.QuadPart;
965
965
}
966
966
else
967
967
{
···
1413
1413
PUSBPORT_REGISTRATION_PACKET Packet;
1414
1414
PVOID Id;
1415
1415
WCHAR Buffer[300] = {0};
1416
1416
-
ULONG Length = 0;
1416
1416
+
SIZE_T Length = 0;
1417
1417
size_t Remaining = sizeof(Buffer);
1418
1418
PWCHAR EndBuffer;
1419
1419
+1
-1
drivers/usb/usbport/roothub.c
reviewed
···
485
485
USBPORT_RootHubEndpoint0(IN PUSBPORT_TRANSFER Transfer)
486
486
{
487
487
PDEVICE_OBJECT FdoDevice;
488
488
-
SIZE_T TransferLength;
488
488
+
ULONG TransferLength;
489
489
PVOID Buffer;
490
490
PURB Urb;
491
491
PUSB_DEFAULT_PIPE_SETUP_PACKET SetupPacket;
+1
-1
drivers/usb/usbport/usbport.c
reviewed
···
2299
2299
BOOLEAN WriteToDevice;
2300
2300
PHYSICAL_ADDRESS PhAddr = {{0, 0}};
2301
2301
PHYSICAL_ADDRESS PhAddress = {{0, 0}};
2302
2302
-
SIZE_T TransferLength;
2302
2302
+
ULONG TransferLength;
2303
2303
SIZE_T SgCurrentLength;
2304
2304
SIZE_T ElementLength;
2305
2305
PUSBPORT_DEVICE_HANDLE DeviceHandle;
+1
-1
sdk/include/reactos/drivers/usbport/usbmport.h
reviewed
···
434
434
PVOID,
435
435
PVOID,
436
436
USBD_STATUS,
437
437
-
SIZE_T);
437
437
+
ULONG);
438
438
439
439
typedef ULONG
440
440
(NTAPI *PUSBPORT_COMPLETE_ISO_TRANSFER)(