reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 1d51ce93f98bb59f9a0d17ddd6a069183c1582f6
parent f17367474654e951f7e7160c13164d65564004bd
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Tue, 15 Dec 2015 11:49:57 -0800

fix binary file writing on windows

Diffstat:
Msrc/transaction.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/transaction.cpp b/src/transaction.cpp @@ -136,9 +136,9 @@ bool Transaction::saveFile(Download *dl, const Path &path) RecursiveCreateDirectory(path.dirname().c_str(), 0); const string strPath = path.join(); - ofstream file(strPath); + ofstream file(strPath, ios_base::binary); - if(file.bad()) { + if(!file) { addError(strerror(errno), strPath); return false; }