[PATCH] msvcrt/tests: Fix some tests on Windows 2003 and earlier.

Zebediah Figura z.figura12 at gmail.com
Sat Aug 1 10:19:15 CDT 2020


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/msvcrt/tests/string.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/msvcrt/tests/string.c b/dlls/msvcrt/tests/string.c
index 8e23f9cffee..3970f703f65 100644
--- a/dlls/msvcrt/tests/string.c
+++ b/dlls/msvcrt/tests/string.c
@@ -1983,7 +1983,8 @@ static void test__strtod(void)
         ok(d == tests[i].ret, "%d) d = %.16e\n", i, d);
         ok(end == tests[i].str + tests[i].len, "%d) len = %d\n",
                 i, (int)(end - tests[i].str));
-        ok(errno == tests[i].err, "%d) errno = %d\n", i, errno);
+        ok(errno == tests[i].err || (!tests[i].err && errno == 0xdeadbeef) /* <= 2003 */,
+                "%d) errno = %d\n", i, errno);
     }
 
     if (!p__strtod_l)
-- 
2.27.0




More information about the wine-devel mailing list