https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c548b97328652a7a14e50…
commit c548b97328652a7a14e508ec41613f409a58c658
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Wed Feb 1 20:15:54 2023 +0100
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Fri Feb 3 19:15:47 2023 +0100
[USERENV_WINETEST] Compare variable case insensitive
This fixes a test for TestWHS
---
modules/rostests/winetests/userenv/userenv.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/rostests/winetests/userenv/userenv.c
b/modules/rostests/winetests/userenv/userenv.c
index 79b4d59a613..c50bf49d869 100644
--- a/modules/rostests/winetests/userenv/userenv.c
+++ b/modules/rostests/winetests/userenv/userenv.c
@@ -152,7 +152,11 @@ static void test_create_env(void)
for(i=0; i<4; i++)
{
r = get_env(env[i], "SystemRoot", &st);
+#ifdef __REACTOS__
+ ok(!stricmp(st, "SystemRoot=overwrite"), "%s\n", st);
+#else
ok(!strcmp(st, "SystemRoot=overwrite"), "%s\n", st);
+#endif
expect(TRUE, r);
HeapFree(GetProcessHeap(), 0, st);
}