diff --git a/src/downloadthread.cpp b/src/downloadthread.cpp index c9ec8e6..73fcda1 100644 --- a/src/downloadthread.cpp +++ b/src/downloadthread.cpp @@ -314,7 +314,7 @@ bool DownloadThread::_openAndPrepareDevice() if (!_file.seek(knownsize-emptyMB.size()) || !_file.write(emptyMB.data(), emptyMB.size()) || !_file.flush() - || !::fsync(_file.handle())) + || ::fsync(_file.handle())) { emit error(tr("Write error while trying to zero out last part of card.
" "Card could be advertising wrong capacity (possible counterfeit)."));