mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 06:05:45 +00:00
Fix string issues
This commit is contained in:
@@ -273,7 +273,7 @@ void rdclog_filename(const char *filename)
|
||||
{
|
||||
logfileHandle = FileIO::logfile_open(*logfile);
|
||||
|
||||
if(logfileHandle && previous.c_str())
|
||||
if(logfileHandle && !previous.empty())
|
||||
{
|
||||
rdcstr previousContents;
|
||||
FileIO::ReadAll(previous, previousContents);
|
||||
|
||||
@@ -433,7 +433,7 @@ void RenderDoc::Initialise()
|
||||
FileIO::GetDefaultFiles(base, capture_filename, m_LoggingFilename, m_Target);
|
||||
|
||||
if(m_CaptureFileTemplate.empty())
|
||||
SetCaptureFileTemplate(capture_filename.c_str());
|
||||
SetCaptureFileTemplate(capture_filename);
|
||||
|
||||
RDCLOGFILE(m_LoggingFilename.c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user