mirror of https://github.com/PCSX2/pcsx2.git
Error: Fix errno resolution on Win32
This commit is contained in:
parent
a641d2a2de
commit
c9008bf78b
|
@ -47,7 +47,7 @@ void Error::SetErrno(int err)
|
|||
|
||||
#ifdef _MSC_VER
|
||||
char buf[128];
|
||||
if (strerror_s(buf, sizeof(buf), err) != 0)
|
||||
if (strerror_s(buf, sizeof(buf), err) == 0)
|
||||
m_description = fmt::format("errno {}: {}", err, buf);
|
||||
else
|
||||
m_description = fmt::format("errno {}: <Could not get error message>", err);
|
||||
|
|
Loading…
Reference in New Issue