1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 08:39:46 +02:00

Open the the autosave file in binary mode

Will prevent line ends from throwing of the number of bytes read.
This commit is contained in:
Leland Lucius 2015-04-19 03:41:16 -05:00
parent 6688f122cf
commit 9b8d538037

View File

@ -645,7 +645,7 @@ bool AutoSaveFile::Decode(const wxString & fileName)
file.Close();
// Add </project> tag, if necessary
if (!file.Open(fn.GetFullPath(), wxT("r+")))
if (!file.Open(fn.GetFullPath(), wxT("r+b")))
{
// Really shouldn't happen, but let the caller deal with it
return false;