mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 05:45:38 +00:00
Error: Fix errno resolving on Win32
This commit is contained in:
parent
dd1a00674d
commit
6bfd498e31
|
@ -33,7 +33,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 a new issue