diff --git a/direct/src/plugin_activex/PPLogger.cpp b/direct/src/plugin_activex/PPLogger.cpp index d9d704a64a..25d6c79603 100644 --- a/direct/src/plugin_activex/PPLogger.cpp +++ b/direct/src/plugin_activex/PPLogger.cpp @@ -126,6 +126,9 @@ void PPLogger::Open( const std::string &rootDir ) log_basename = P3D_PLUGIN_LOG_BASENAME1; } #endif + if (log_basename.empty()) { + log_basename = "p3dplugin"; + } if (!log_basename.empty()) { std::string log_pathname = log_directory; diff --git a/direct/src/plugin_npapi/startup.cxx b/direct/src/plugin_npapi/startup.cxx index 1ca922c884..42fb98cd7a 100644 --- a/direct/src/plugin_npapi/startup.cxx +++ b/direct/src/plugin_npapi/startup.cxx @@ -79,6 +79,9 @@ open_logfile() { log_basename = P3D_PLUGIN_LOG_BASENAME1; } #endif + if (log_basename.empty()) { + log_basename = "p3dplugin"; + } if (!log_basename.empty()) { string log_pathname = log_directory;