Fix formatting MO disk in Windows host.
This commit is contained in:
@@ -2575,7 +2575,7 @@ mo_format(mo_t *dev)
|
|||||||
|
|
||||||
ret = (int)SetEndOfFile(fh);
|
ret = (int)SetEndOfFile(fh);
|
||||||
|
|
||||||
if(ret)
|
if(!ret)
|
||||||
{
|
{
|
||||||
DEBUG("MO %i: Failed to truncate image file to 0\n", dev->id);
|
DEBUG("MO %i: Failed to truncate image file to 0\n", dev->id);
|
||||||
return;
|
return;
|
||||||
@@ -2592,7 +2592,7 @@ mo_format(mo_t *dev)
|
|||||||
|
|
||||||
ret = (int)SetEndOfFile(fh);
|
ret = (int)SetEndOfFile(fh);
|
||||||
|
|
||||||
if(ret)
|
if(!ret)
|
||||||
{
|
{
|
||||||
DEBUG("MO %i: Failed to truncate image file to %llu\n", dev->id, size);
|
DEBUG("MO %i: Failed to truncate image file to %llu\n", dev->id, size);
|
||||||
return;
|
return;
|
||||||
@@ -2655,3 +2655,4 @@ mo_erase(mo_t *dev)
|
|||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user