mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Fix possible crash on Windows
This commit is contained in:
parent
3b82120923
commit
9494b15bd5
1 changed files with 1 additions and 1 deletions
|
@ -2055,7 +2055,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
|
||||||
QFile::remove(file);
|
QFile::remove(file);
|
||||||
qDebug("Saving fastresume data in %s", qPrintable(file));
|
qDebug("Saving fastresume data in %s", qPrintable(file));
|
||||||
if (p->resume_data) {
|
if (p->resume_data) {
|
||||||
boost::filesystem::ofstream out(fs::path(torrentBackup.path().toLocal8Bit().constData()) / file.toLocal8Bit().constData(), std::ios_base::binary);
|
boost::filesystem::ofstream out(boost::filesystem::path(file.toLocal8Bit().constData()), std::ios_base::binary);
|
||||||
out.unsetf(std::ios_base::skipws);
|
out.unsetf(std::ios_base::skipws);
|
||||||
bencode(std::ostream_iterator<char>(out), *p->resume_data);
|
bencode(std::ostream_iterator<char>(out), *p->resume_data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue