Fix formatting MO disk in Windows host.

This commit is contained in:
2020-03-29 05:26:38 +01:00
parent 0a1bc9e419
commit 07f7ba3eb5

View File

@@ -2575,7 +2575,7 @@ mo_format(mo_t *dev)
ret = (int)SetEndOfFile(fh);
if(ret)
if(!ret)
{
DEBUG("MO %i: Failed to truncate image file to 0\n", dev->id);
return;
@@ -2592,7 +2592,7 @@ mo_format(mo_t *dev)
ret = (int)SetEndOfFile(fh);
if(ret)
if(!ret)
{
DEBUG("MO %i: Failed to truncate image file to %llu\n", dev->id, size);
return;
@@ -2655,3 +2655,4 @@ mo_erase(mo_t *dev)
return 1;
}