mirror of
https://github.com/GerbilSoft/rvthtool.git
synced 2025-06-18 19:45:35 -04:00
[qrvthtool] qrvthtool.cpp: The device name check was backwards.
It's "\\\\.\\PhysicalDrive" for Windows, and "/dev/" for Linux and other Unix-like operating systems.
This commit is contained in:
parent
64e16c74bd
commit
c68875d5c0
@ -119,9 +119,9 @@ int main(int argc, char *argv[])
|
||||
// TODO: Better device file check.
|
||||
const QString &filename = args.at(1);
|
||||
#ifdef _WIN32
|
||||
bool isDevice = filename.startsWith(QLatin1String("/dev/"));
|
||||
#else /* !_WIN32 */
|
||||
bool isDevice = filename.startsWith(QLatin1String("\\\\.\\PhysicalDrive", Qt::CaseInsensitive));
|
||||
#else /* !_WIN32 */
|
||||
bool isDevice = filename.startsWith(QLatin1String("/dev/"));
|
||||
#endif /* _WIN32 */
|
||||
window->openRvtH(QDir::fromNativeSeparators(filename), isDevice);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user