mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
more ulong <-> pointer fixes
svn path=/branches/ros-amd64-bringup/; revision=36012
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user