mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 09:13:01 +00:00
[SCSIPORT]
ScsiPortConvertPhysicalAddressToUlong takes an ULONG_PTR as input, fix function accordingly and do the "calculation" directly instead of calling RtlConvertUlongToLargeInteger Spotted by Samuel. svn path=/trunk/; revision=50089
This commit is contained in:
parent
f43fa44a2e
commit
1ef6958203
4 changed files with 14 additions and 8 deletions
|
@ -445,9 +445,12 @@ ScsiPortConvertPhysicalAddressToUlong(
|
|||
SCSI_PHYSICAL_ADDRESS
|
||||
NTAPI
|
||||
ScsiPortConvertUlongToPhysicalAddress(
|
||||
IN ULONG UlongAddress)
|
||||
IN ULONG_PTR UlongAddress)
|
||||
{
|
||||
return RtlConvertUlongToLargeInteger(UlongAddress);
|
||||
SCSI_PHYSICAL_ADDRESS Address;
|
||||
|
||||
Address.QuadPart = UlongAddress;
|
||||
return Address;
|
||||
}
|
||||
|
||||
VOID
|
||||
|
|
|
@ -935,7 +935,7 @@ ScsiPortWriteRegisterBufferUlong(
|
|||
SCSIPORT_API
|
||||
SCSI_PHYSICAL_ADDRESS NTAPI
|
||||
ScsiPortConvertUlongToPhysicalAddress(
|
||||
ULONG UlongAddress
|
||||
ULONG_PTR UlongAddress
|
||||
);
|
||||
|
||||
SCSIPORT_API
|
||||
|
|
|
@ -42,9 +42,12 @@
|
|||
SCSI_PHYSICAL_ADDRESS
|
||||
NTAPI
|
||||
ScsiPortConvertUlongToPhysicalAddress(
|
||||
IN ULONG UlongAddress)
|
||||
IN ULONG_PTR UlongAddress)
|
||||
{
|
||||
return RtlConvertUlongToLargeInteger(UlongAddress);
|
||||
SCSI_PHYSICAL_ADDRESS Address;
|
||||
|
||||
Address.QuadPart = UlongAddress;
|
||||
return Address;
|
||||
}
|
||||
|
||||
VOID
|
||||
|
|
|
@ -550,7 +550,7 @@ SCSIPORTAPI
|
|||
SCSI_PHYSICAL_ADDRESS
|
||||
NTAPI
|
||||
ScsiPortConvertUlongToPhysicalAddress(
|
||||
IN ULONG UlongAddress);
|
||||
IN ULONG_PTR UlongAddress);
|
||||
|
||||
SCSIPORTAPI
|
||||
VOID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue