mirror of
https://github.com/ksherlock/profuse.git
synced 2025-01-20 10:30:01 +00:00
git-svn-id: https://profuse.googlecode.com/svn/branches/profuse_interim@371 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
parent
24757dc35c
commit
977f0530fc
6
main.cpp
6
main.cpp
@ -262,9 +262,9 @@ int main(int argc, char *argv[])
|
|||||||
try {
|
try {
|
||||||
Device::BlockDevicePointer device;
|
Device::BlockDevicePointer device;
|
||||||
|
|
||||||
device.reset ( Device::BlockDevice::Open(fDiskImage.c_str(), File::ReadOnly, format) );
|
device = Device::BlockDevice::Open(fDiskImage.c_str(), File::ReadOnly, format);
|
||||||
|
|
||||||
if (!device.get())
|
if (!device)
|
||||||
{
|
{
|
||||||
std::fprintf(stderr, "Error: Unknown or unsupported device type.\n");
|
std::fprintf(stderr, "Error: Unknown or unsupported device type.\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
@ -272,7 +272,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
disk = Disk::OpenFile(device);
|
disk = Disk::OpenFile(device);
|
||||||
|
|
||||||
if (!disk.get())
|
if (!disk)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Unable to mount disk %s\n", fDiskImage.c_str());
|
fprintf(stderr, "Unable to mount disk %s\n", fDiskImage.c_str());
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user