From c9008bf78b15ac71d9c273fce39ee10d8ed3f228 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 17 Sep 2023 01:05:33 +1000 Subject: [PATCH] Error: Fix errno resolution on Win32 --- common/Error.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/Error.cpp b/common/Error.cpp index 2a88102a20..d54f5b4eea 100644 --- a/common/Error.cpp +++ b/common/Error.cpp @@ -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 {}: ", err);