https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0782375f8b3f7d307185f…
commit 0782375f8b3f7d307185f2845a36974a3e429cb9
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Thu Aug 5 15:33:43 2021 +0200
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Thu Aug 5 15:35:19 2021 +0200
[CRT] Add one missing entry to _syserr_list array, fix _sys_nerr definition
Partial revert of 296e07b94d79b9e6fec3b05de26c4afad3b1f4e1
---
sdk/lib/crt/string/strerror.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sdk/lib/crt/string/strerror.c b/sdk/lib/crt/string/strerror.c
index 10bda6c746f..bc9b5785d93 100644
--- a/sdk/lib/crt/string/strerror.c
+++ b/sdk/lib/crt/string/strerror.c
@@ -63,6 +63,7 @@ char __syserr39[] = "No locks available (ENOLCK)";
char __syserr40[] = "Function not implemented (ENOSYS)";
char __syserr41[] = "Directory not empty (ENOTEMPTY)";
char __syserr42[] = "Illegal byte sequence (EILSEQ)";
+char __syserr43[] = "Unknown/generic error";
char *_sys_errlist[] = {
__syserr00, __syserr01, __syserr02, __syserr03, __syserr04,
@@ -73,10 +74,10 @@ __syserr20, __syserr21, __syserr22, __syserr23, __syserr24,
__syserr25, __syserr26, __syserr27, __syserr28, __syserr29,
__syserr30, __syserr31, __syserr32, __syserr33, __syserr34,
__syserr35, __syserr36, __syserr37, __syserr38, __syserr39,
-__syserr40, __syserr41, __syserr42
+__syserr40, __syserr41, __syserr42, __syserr43
};
-int _sys_nerr = sizeof(_sys_errlist) / sizeof(_sys_errlist[0]);
+int _sys_nerr = sizeof(_sys_errlist) / sizeof(_sys_errlist[0]) - 1;
/*********************************************************************
* strerror (MSVCRT.@)