Error: Fix errno resolving on Win32
This commit is contained in:
1 parent
dd1a00674d
commit
6bfd498e31
1 file changed
+1
-1
@@ -33,7 +33,7 @@ void Error::SetErrno(int err)
|
|||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
char buf[128];
|
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);
|
m_description = fmt::format("errno {}: {}", err, buf);
|
||||||
else
|
else
|
||||||
m_description = fmt::format("errno {}: <Could not get error message>", err);
|
m_description = fmt::format("errno {}: <Could not get error message>", err);
|
||||||
|
|||||||
Reference in new issue
Block a user