mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 07:13:49 +01: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user