mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 15:23:48 +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();
|
file.Close();
|
||||||
|
|
||||||
// Add </project> tag, if necessary
|
// 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
|
// Really shouldn't happen, but let the caller deal with it
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user