Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/coreclr/vm/perfmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,14 +261,12 @@ void PerfMap::WriteLine(SString& line)
EX_TRY
{
// Write the line.

if (fprintf(m_fp, "%s", line.GetUTF8()) != 0)
Comment thread
tommcdon marked this conversation as resolved.
if (fprintf(m_fp, "%s", line.GetUTF8()) < 0)
{
// This will cause us to stop writing to the file.
// The file will still remain open until shutdown so that we don't have to take a lock at this level when we touch the file stream.
m_ErrorEncountered = true;
}

}
EX_CATCH{} EX_END_CATCH
}
Expand Down