mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-08 04:20:09 +00:00
Minor clean-ups.
This commit is contained in:
parent
8ea44694dc
commit
7485498ee7
23 changed files with 100 additions and 186 deletions
|
|
@ -329,8 +329,7 @@ void findCDDevices (Array<CDDeviceDescription>& list)
|
|||
{
|
||||
char buffer[100] = { 0 };
|
||||
|
||||
SCSI_PASS_THROUGH_DIRECT_WITH_BUFFER p;
|
||||
zerostruct (p);
|
||||
SCSI_PASS_THROUGH_DIRECT_WITH_BUFFER p = { 0 };
|
||||
p.spt.Length = sizeof (SCSI_PASS_THROUGH);
|
||||
p.spt.CdbLength = 6;
|
||||
p.spt.SenseInfoLength = 24;
|
||||
|
|
@ -352,8 +351,7 @@ void findCDDevices (Array<CDDeviceDescription>& list)
|
|||
dev.scsiDriveLetter = driveLetter;
|
||||
dev.createDescription (buffer);
|
||||
|
||||
SCSI_ADDRESS scsiAddr;
|
||||
zerostruct (scsiAddr);
|
||||
SCSI_ADDRESS scsiAddr = { 0 };
|
||||
scsiAddr.Length = sizeof (scsiAddr);
|
||||
|
||||
if (DeviceIoControl (h, IOCTL_SCSI_GET_ADDRESS,
|
||||
|
|
@ -376,9 +374,7 @@ void findCDDevices (Array<CDDeviceDescription>& list)
|
|||
DWORD performScsiPassThroughCommand (SRB_ExecSCSICmd* const srb, const char driveLetter,
|
||||
HANDLE& deviceHandle, const bool retryOnFailure)
|
||||
{
|
||||
SCSI_PASS_THROUGH_DIRECT_WITH_BUFFER s;
|
||||
zerostruct (s);
|
||||
|
||||
SCSI_PASS_THROUGH_DIRECT_WITH_BUFFER s = { 0 };
|
||||
s.spt.Length = sizeof (SCSI_PASS_THROUGH);
|
||||
s.spt.CdbLength = srb->SRB_CDBLen;
|
||||
|
||||
|
|
@ -805,8 +801,7 @@ int CDController::getLastIndex()
|
|||
//==============================================================================
|
||||
bool CDDeviceHandle::readTOC (TOC* lpToc)
|
||||
{
|
||||
SRB_ExecSCSICmd s;
|
||||
zerostruct (s);
|
||||
SRB_ExecSCSICmd s = { 0 };
|
||||
s.SRB_Cmd = SC_EXEC_SCSI_CMD;
|
||||
s.SRB_HaID = info.ha;
|
||||
s.SRB_Target = info.tgt;
|
||||
|
|
@ -880,8 +875,7 @@ void CDDeviceHandle::openDrawer (bool shouldBeOpen)
|
|||
}
|
||||
}
|
||||
|
||||
SRB_ExecSCSICmd s;
|
||||
zerostruct (s);
|
||||
SRB_ExecSCSICmd s = { 0 };
|
||||
s.SRB_Cmd = SC_EXEC_SCSI_CMD;
|
||||
s.SRB_HaID = info.ha;
|
||||
s.SRB_Target = info.tgt;
|
||||
|
|
@ -1138,9 +1132,7 @@ bool AudioCDReader::readSamples (int** destSamples, int numDestChannels, int sta
|
|||
bool AudioCDReader::isCDStillPresent() const
|
||||
{
|
||||
using namespace CDReaderHelpers;
|
||||
TOC toc;
|
||||
zerostruct (toc);
|
||||
|
||||
TOC toc = { 0 };
|
||||
return static_cast <CDDeviceWrapper*> (handle)->deviceHandle.readTOC (&toc);
|
||||
}
|
||||
|
||||
|
|
@ -1150,8 +1142,7 @@ void AudioCDReader::refreshTrackLengths()
|
|||
trackStartSamples.clear();
|
||||
zeromem (audioTracks, sizeof (audioTracks));
|
||||
|
||||
TOC toc;
|
||||
zerostruct (toc);
|
||||
TOC toc = { 0 };
|
||||
|
||||
if (static_cast <CDDeviceWrapper*> (handle)->deviceHandle.readTOC (&toc))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue