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:
parent
6688f122cf
commit
9b8d538037
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user