more ulong <-> pointer fixes

svn path=/branches/ros-amd64-bringup/; revision=36012
This commit is contained in:
Timo Kreuzer
2008-09-07 00:04:29 +00:00
parent 3a18219adc
commit 6acdf6d0d2
+3 -3
View File
@@ -462,7 +462,7 @@ ScsiPortGetDeviceBase(IN PVOID HwDeviceExtension,
/* 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 @@ CreatePortConfig:
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,