mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Merge pull request #12575 from n8pjl/werror-nonnull
IOFile: avoid clearing errors on null file struct
This commit is contained in:
commit
a583526a1c
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue