Author: tkreuzer
Date: Sat Sep 6 19:04:29 2008
New Revision: 36012
URL:
http://svn.reactos.org/svn/reactos?rev=36012&view=rev
Log:
more ulong <-> pointer fixes
Modified:
branches/ros-amd64-bringup/reactos/drivers/storage/scsiport/scsiport.c
Modified: branches/ros-amd64-bringup/reactos/drivers/storage/scsiport/scsiport.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/drive…
==============================================================================
--- branches/ros-amd64-bringup/reactos/drivers/storage/scsiport/scsiport.c [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/drivers/storage/scsiport/scsiport.c [iso-8859-1]
Sat Sep 6 19:04:29 2008
@@ -462,7 +462,7 @@
/* i/o space */
if (AddressSpace != 0)
- return((PVOID)TranslatedAddress.u.LowPart);
+ return((PVOID)(ULONG_PTR)TranslatedAddress.QuadPart);
MappedAddress = MmMapIoSpace(TranslatedAddress,
NumberOfBytes,
@@ -1133,8 +1133,8 @@
PortConfig->AccessRanges = (PVOID)(PortConfig+1);
/* Align to LONGLONG */
- PortConfig->AccessRanges = (PVOID)((ULONG)(PortConfig->AccessRanges) +
7);
- PortConfig->AccessRanges = (PVOID)((ULONG)(PortConfig->AccessRanges)
& ~7);
+ PortConfig->AccessRanges =
(PVOID)((ULONG_PTR)(PortConfig->AccessRanges) + 7);
+ PortConfig->AccessRanges =
(PVOID)((ULONG_PTR)(PortConfig->AccessRanges) & ~7);
/* Copy the data */
RtlCopyMemory(PortConfig->AccessRanges,