Typos
This commit is contained in:
committed by
bsongis
parent
54a5a34fe8
commit
f134619f7d
@@ -362,16 +362,15 @@ bool writeEeprom(const QString &filename, ProgressWidget *progress)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined WIN32 || !defined __GNUC__
|
#if defined WIN32 || !defined __GNUC__
|
||||||
bool isRemovableMedia(const QString &vol )
|
bool isRemovableMedia(const QString & vol)
|
||||||
{
|
{
|
||||||
char szDosDeviceName[MAX_PATH];
|
char szDosDeviceName[MAX_PATH];
|
||||||
QString volume;
|
QString volume = vol
|
||||||
volume.append(vol);
|
UINT driveType = GetDriveType(volume.replace("/", "\\").toLatin1());
|
||||||
UINT DriveType = GetDriveType( volume.replace("/","\\").toLatin1() );
|
if (driveType != DRIVE_REMOVABLE)
|
||||||
if ( DriveType != DRIVE_REMOVABLE )
|
|
||||||
return false;
|
return false;
|
||||||
QueryDosDevice( volume.replace("/","").toLatin1(), szDosDeviceName, MAX_PATH );
|
QueryDosDevice(volume.replace("/", "").toLatin1(), szDosDeviceName, MAX_PATH);
|
||||||
if ( strstr( szDosDeviceName,"\\Floppy") != NULL ) { // its a floppy
|
if (strstr(szDosDeviceName, "\\Floppy") != NULL) { // it's a floppy
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user