Error: Fix errno resolution on Win32

This commit is contained in:
Stenzek 2023-09-17 01:05:33 +10:00 committed by Connor McLaughlin
parent a641d2a2de
commit c9008bf78b
1 changed files with 1 additions and 1 deletions

View File

@ -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);