mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 15:37:48 +01:00
use single newline char in VST info files.
windows writes \r\n to non-binary files and the VST info parser does not handle that case.
This commit is contained in:
parent
35f46455dc
commit
5d78eb24fb
1 changed files with 3 additions and 3 deletions
|
|
@ -374,10 +374,10 @@ static FILE *
|
|||
vstfx_blacklist_file (const char *dllpath)
|
||||
{
|
||||
FILE *f;
|
||||
if ((f = fopen (vstfx_blacklist_path (dllpath, 0).c_str(), "w"))) {
|
||||
if ((f = fopen (vstfx_blacklist_path (dllpath, 0).c_str(), "wb"))) {
|
||||
return f;
|
||||
}
|
||||
return fopen (vstfx_blacklist_path (dllpath, 1).c_str(), "w");
|
||||
return fopen (vstfx_blacklist_path (dllpath, 1).c_str(), "wb");
|
||||
}
|
||||
|
||||
/** mark plugin as blacklisted */
|
||||
|
|
@ -477,7 +477,7 @@ vstfx_infofile_create (const char* dllpath, int personal)
|
|||
}
|
||||
|
||||
string const path = vstfx_infofile_path (dllpath, personal);
|
||||
return fopen (path.c_str(), "w");
|
||||
return fopen (path.c_str(), "wb");
|
||||
}
|
||||
|
||||
/** newly created cache file for given plugin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue