mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[USBPORT] Fix 64 bit warnings.
This commit is contained in:
parent
bd4529b717
commit
5403094339
2 changed files with 6 additions and 4 deletions
|
@ -1709,7 +1709,7 @@ USBPORT_PdoPnP(IN PDEVICE_OBJECT PdoDevice,
|
||||||
L"USB\\ROOT_HUB");
|
L"USB\\ROOT_HUB");
|
||||||
}
|
}
|
||||||
|
|
||||||
Length = (wcslen(Buffer) + 1);
|
Length = (LONG)(wcslen(Buffer) + 1);
|
||||||
|
|
||||||
Id = ExAllocatePoolWithTag(PagedPool,
|
Id = ExAllocatePoolWithTag(PagedPool,
|
||||||
Length * sizeof(WCHAR),
|
Length * sizeof(WCHAR),
|
||||||
|
|
|
@ -1844,9 +1844,11 @@ USBPORT_AddDevice(IN PDRIVER_OBJECT DriverObject,
|
||||||
|
|
||||||
RtlInitUnicodeString(&DeviceName, CharDeviceName);
|
RtlInitUnicodeString(&DeviceName, CharDeviceName);
|
||||||
|
|
||||||
Length = sizeof(USBPORT_DEVICE_EXTENSION) +
|
ASSERT(MiniPortInterface->Packet.MiniPortExtensionSize <=
|
||||||
MiniPortInterface->Packet.MiniPortExtensionSize +
|
MAXULONG - sizeof(USBPORT_DEVICE_EXTENSION) - sizeof(USB2_HC_EXTENSION));
|
||||||
sizeof(USB2_HC_EXTENSION);
|
Length = (ULONG)(sizeof(USBPORT_DEVICE_EXTENSION) +
|
||||||
|
MiniPortInterface->Packet.MiniPortExtensionSize +
|
||||||
|
sizeof(USB2_HC_EXTENSION));
|
||||||
|
|
||||||
/* Create device */
|
/* Create device */
|
||||||
Status = IoCreateDevice(DriverObject,
|
Status = IoCreateDevice(DriverObject,
|
||||||
|
|
Loading…
Reference in a new issue