Improve CVolumeStream to allow reading from physical drives again.

This commit is contained in:
Jean-Philip Desjardins 2019-10-02 13:07:03 -04:00
parent e9078ce3f0
commit e5580af607
3 changed files with 32 additions and 33 deletions

View file

@ -79,7 +79,7 @@ DiskUtils::OpticalMediaPtr DiskUtils::CreateOpticalMediaFromPath(const boost::fi
#ifdef _WIN32
else if(imagePath.string()[0] == '\\')
{
stream = std::make_shared<Framework::Win32::CVolumeStream>(imagePath.string()[4]);
stream = std::make_shared<Framework::Win32::CVolumeStream>(imagePath.native().c_str());
}
#elif !defined(__ANDROID__) && !TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR
else if(imagePath.string().find("/dev/") == 0)