mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-08 21:53:31 +01:00
Merge pull request #12575 from n8pjl/werror-nonnull
IOFile: avoid clearing errors on null file struct
This commit is contained in:
commit
a583526a1c
@ -116,6 +116,7 @@ public:
|
|||||||
void ClearError()
|
void ClearError()
|
||||||
{
|
{
|
||||||
m_good = true;
|
m_good = true;
|
||||||
|
if (IsOpen())
|
||||||
std::clearerr(m_file);
|
std::clearerr(m_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user