Author: dgorbachev
Date: Sat Nov 2 13:54:48 2013
New Revision: 60831
URL:
http://svn.reactos.org/svn/reactos?rev=60831&view=rev
Log:
[ATACTL]
Fix CORE-7042.
Modified:
trunk/reactos/base/applications/atactl/atactl.cpp
Modified: trunk/reactos/base/applications/atactl/atactl.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/atactl/a…
==============================================================================
--- trunk/reactos/base/applications/atactl/atactl.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/applications/atactl/atactl.cpp [iso-8859-1] Sat Nov 2 13:54:48
2013
@@ -243,7 +243,7 @@
ata_send_ioctl(
HANDLE h,
PSCSI_ADDRESS addr,
- PCHAR Signature,
+ PCCH Signature,
ULONG Ioctl,
PVOID inBuffer,
ULONG inBufferLength,
@@ -731,7 +731,7 @@
addr.PathId = inquiryData->PathId;
addr.TargetId = inquiryData->TargetId;
addr.Lun = inquiryData->Lun;
- status = ata_send_ioctl(h, &addr, (PCHAR)"-UNIATA-",
+ status = ata_send_ioctl(h, &addr, "-UNIATA-",
IOCTL_SCSI_MINIPORT_UNIATA_GET_MODE,
NULL, 0,
&IoMode, sizeof(IoMode),
@@ -753,7 +753,7 @@
// probably, we shall change this in future to support SATA splitters
pin.bDriveNumber = inquiryData->PathId*2+inquiryData->TargetId;
- status = ata_send_ioctl(h, NULL, (PCHAR)"SCSIDISK",
+ status = ata_send_ioctl(h, NULL, "SCSIDISK",
IOCTL_SCSI_MINIPORT_IDENTIFY,
&pin, sizeof(pin),
buff, sizeof(buff),
@@ -767,7 +767,7 @@
// probably, we shall change this in future to support SATA
splitters
pin.bDriveNumber =
inquiryData->PathId*2+inquiryData->TargetId;
- status = ata_send_ioctl(h, NULL, (PCHAR)"SCSIDISK",
+ status = ata_send_ioctl(h, NULL, "SCSIDISK",
IOCTL_SCSI_MINIPORT_IDENTIFY,
&pin, sizeof(pin),
buff, sizeof(buff),
@@ -999,7 +999,7 @@
}
memset(AdapterInfo, 0, len);
- status = ata_send_ioctl(h, &addr, (PCHAR)"-UNIATA-",
+ status = ata_send_ioctl(h, &addr, "-UNIATA-",
IOCTL_SCSI_MINIPORT_UNIATA_ADAPTER_INFO,
AdapterInfo, len,
AdapterInfo, len,
@@ -1121,7 +1121,7 @@
// IoMode.ApplyImmediately = TRUE;
IoMode.OrigMode = mode;
- status = ata_send_ioctl(h, &addr, (PCHAR)"-UNIATA-",
+ status = ata_send_ioctl(h, &addr, "-UNIATA-",
IOCTL_SCSI_MINIPORT_UNIATA_SET_MAX_MODE,
&IoMode, sizeof(IoMode),
NULL, 0,
@@ -1225,7 +1225,7 @@
if(lock) {
printf("ATTENTION: you have %d seconds to disconnect cable\n", lock);
}
- status = ata_send_ioctl(h, &addr, (PCHAR)"-UNIATA-",
+ status = ata_send_ioctl(h, &addr, "-UNIATA-",
IOCTL_SCSI_MINIPORT_UNIATA_DELETE_DEVICE,
&to, sizeof(to),
NULL, 0,
@@ -1280,7 +1280,7 @@
if(lock) {
printf("You have %d seconds to connect device.\n", lock);
}
- status = ata_send_ioctl(h, &addr, (PCHAR)"-UNIATA-",
+ status = ata_send_ioctl(h, &addr, "-UNIATA-",
IOCTL_SCSI_MINIPORT_UNIATA_FIND_DEVICES,
&to, sizeof(to),
NULL, 0,
@@ -1425,7 +1425,7 @@
addr.TargetId = (UCHAR)(dev_id >> 8);
addr.Lun = (UCHAR)(dev_id);
- status = ata_send_ioctl(h, &addr, (PCHAR)"-UNIATA-",
+ status = ata_send_ioctl(h, &addr, "-UNIATA-",
IOCTL_SCSI_MINIPORT_UNIATA_RESETBB,
NULL, 0,
NULL, 0,