Reactos

[USBPORT] Fix 64 bit issues

+10 -10
+3 -3
drivers/usb/usbport/device.c
··· 479 479 { 480 480 PUSB_INTERFACE_DESCRIPTOR Descriptor; 481 481 PUSBD_PIPE_INFORMATION Pipe; 482 - USHORT Length; 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 - SIZE_T TransferedLen; 975 - SIZE_T DescriptorMinSize; 974 + ULONG TransferedLen; 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
··· 768 768 PUSBPORT_DEVICE_EXTENSION FdoExtension; 769 769 PUSBPORT_RHDEVICE_EXTENSION PdoExtension; 770 770 PUSBPORT_REGISTRATION_PACKET Packet; 771 - ULONG EndpointSize; 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
··· 210 210 NTAPI 211 211 USBPORT_GetUnicodeName(IN PDEVICE_OBJECT FdoDevice, 212 212 IN PIRP Irp, 213 - IN PULONG Information) 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
··· 961 961 { 962 962 if (PortDescriptor->Flags & CM_RESOURCE_PORT_IO) 963 963 { 964 - UsbPortResources->ResourceBase = (PVOID)PortDescriptor->u.Port.Start.LowPart; 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 - ULONG Length = 0; 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
··· 485 485 USBPORT_RootHubEndpoint0(IN PUSBPORT_TRANSFER Transfer) 486 486 { 487 487 PDEVICE_OBJECT FdoDevice; 488 - SIZE_T TransferLength; 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
··· 2299 2299 BOOLEAN WriteToDevice; 2300 2300 PHYSICAL_ADDRESS PhAddr = {{0, 0}}; 2301 2301 PHYSICAL_ADDRESS PhAddress = {{0, 0}}; 2302 - SIZE_T TransferLength; 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
··· 434 434 PVOID, 435 435 PVOID, 436 436 USBD_STATUS, 437 - SIZE_T); 437 + ULONG); 438 438 439 439 typedef ULONG 440 440 (NTAPI *PUSBPORT_COMPLETE_ISO_TRANSFER)(