mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
Merge pull request #12575 from n8pjl/werror-nonnull
IOFile: avoid clearing errors on null file struct
This commit is contained in:
@ -116,7 +116,8 @@ public:
|
|||||||
void ClearError()
|
void ClearError()
|
||||||
{
|
{
|
||||||
m_good = true;
|
m_good = true;
|
||||||
std::clearerr(m_file);
|
if (IsOpen())
|
||||||
|
std::clearerr(m_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Reference in New Issue
Block a user