summaryrefslogtreecommitdiff
path: root/libs/ardour/vst_info_file.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-07-24 18:05:08 +0200
committerRobin Gareus <robin@gareus.org>2015-07-24 18:05:08 +0200
commit6c87a43f0eb210389445c53da1516782f3cc567e (patch)
tree6560fff2922557cd9e14d4d71f11e4a1fd7e16af /libs/ardour/vst_info_file.cc
parent64baed2b979b72637f9aed1f8a16250d409f190f (diff)
VST info: use g_fopen() for Windows compat.
Diffstat (limited to 'libs/ardour/vst_info_file.cc')
-rw-r--r--libs/ardour/vst_info_file.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/vst_info_file.cc b/libs/ardour/vst_info_file.cc
index b45a285f9b..06ddc776d0 100644
--- a/libs/ardour/vst_info_file.cc
+++ b/libs/ardour/vst_info_file.cc
@@ -390,7 +390,7 @@ static FILE *
vstfx_blacklist_file (const char *dllpath)
{
FILE *f;
- if ((f = fopen (vstfx_blacklist_path (dllpath, 0).c_str(), "wb"))) {
+ if ((f = g_fopen (vstfx_blacklist_path (dllpath, 0).c_str(), "wb"))) {
#ifndef NDEBUG
PBD::info << "Blacklisted VST: '" << vstfx_blacklist_path (dllpath, 0) << "'" << endmsg;
#endif
@@ -399,7 +399,7 @@ vstfx_blacklist_file (const char *dllpath)
#ifndef NDEBUG
PBD::info << "Blacklisted VST: '" << vstfx_blacklist_path (dllpath, 1) << "'" << endmsg;
#endif
- return fopen (vstfx_blacklist_path (dllpath, 1).c_str(), "wb");
+ return g_fopen (vstfx_blacklist_path (dllpath, 1).c_str(), "wb");
}
/** mark plugin as blacklisted */
@@ -512,7 +512,7 @@ vstfx_infofile_create (const char* dllpath, int personal)
#ifndef NDEBUG
PBD::info << "Creating VST cache file " << path << endmsg;
#endif
- return fopen (path.c_str(), "wb");
+ return g_fopen (path.c_str(), "wb");
}
/** newly created cache file for given plugin
@@ -885,8 +885,8 @@ static void parse_scanner_output (std::string msg, size_t /*len*/)
}
if (!_errorlog_fd) {
- if (!(_errorlog_fd = fopen(vstfx_errorfile_path(_errorlog_dll, 0).c_str(), "w"))) {
- if (!(_errorlog_fd = fopen(vstfx_errorfile_path(_errorlog_dll, 1).c_str(), "w"))) {
+ if (!(_errorlog_fd = g_fopen(vstfx_errorfile_path(_errorlog_dll, 0).c_str(), "w"))) {
+ if (!(_errorlog_fd = g_fopen(vstfx_errorfile_path(_errorlog_dll, 1).c_str(), "w"))) {
PBD::error << "Cannot create plugin error-log for plugin " << _errorlog_dll;
free(_errorlog_dll);
_errorlog_dll = NULL;