Module: wine Branch: master Commit: 12e8d3bd48f28654c4e1d86de19f7e2ff9e2ba4e URL: https://gitlab.winehq.org/wine/wine/-/commit/12e8d3bd48f28654c4e1d86de19f7e2...
Author: Piotr Caban piotr@codeweavers.com Date: Sat Jan 20 20:27:42 2024 +0100
msvcp140: Recognize no error case in _Syserror_map.
---
dlls/msvcp90/misc.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/msvcp90/misc.c b/dlls/msvcp90/misc.c index a08101052da..3ae190abeb3 100644 --- a/dlls/msvcp90/misc.c +++ b/dlls/msvcp90/misc.c @@ -28,6 +28,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcp);
#if _MSVCP_VER >= 110 /* error strings generated with glibc strerror */ +#if _MSVCP_VER >= 140 +static const char str_SUCC[] = "success"; +#endif static const char str_EPERM[] = "operation not permitted"; static const char str_ENOENT[] = "no such file or directory"; static const char str_ESRCH[] = "no such process"; @@ -112,6 +115,9 @@ static const struct { const char *str; } syserror_map[] = { +#if _MSVCP_VER >= 140 + {0, str_SUCC}, +#endif {EPERM, str_EPERM}, {ENOENT, str_ENOENT}, {ESRCH, str_ESRCH},