https://git.reactos.org/?p=reactos.git;a=commitdiff;h=01815608487cfe499afaa…
commit 01815608487cfe499afaaded39ddcbe5503620dc
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Thu Feb 2 12:04:54 2023 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Mon Apr 17 00:41:31 2023 +0300
[KERNEL32_APITEST] Make tests pass on Windows 2003
---
modules/rostests/apitests/kernel32/FindFiles.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/rostests/apitests/kernel32/FindFiles.c
b/modules/rostests/apitests/kernel32/FindFiles.c
index 27a2fde1f9e..a927d0c5929 100644
--- a/modules/rostests/apitests/kernel32/FindFiles.c
+++ b/modules/rostests/apitests/kernel32/FindFiles.c
@@ -117,7 +117,7 @@ static void Test_FindFirstFileA(void)
testType2_A("C:\\*", 0xdeadbeef, INVALID_HANDLE_VALUE, 0xdeadbeef);
testType1_A("\\", 0xdeadbeef, INVALID_HANDLE_VALUE, ERROR_FILE_NOT_FOUND,
TRUE);
- testType1_A("\\\\", 0xdeadbeef, INVALID_HANDLE_VALUE, IsWindows7OrGreater()
? ERROR_INVALID_NAME : ERROR_BAD_NETPATH, TRUE);
+ testType1_A("\\\\", 0xdeadbeef, INVALID_HANDLE_VALUE, ERROR_INVALID_NAME,
TRUE);
testType2_A("\\*", 0xdeadbeef, INVALID_HANDLE_VALUE, 0xdeadbeef);
/* Restore the old current directory */
@@ -135,7 +135,7 @@ static void Test_FindFirstFileA(void)
testType2_A("C:\\*", 0xdeadbeef, INVALID_HANDLE_VALUE, 0xdeadbeef);
testType1_A("\\", 0xdeadbeef, INVALID_HANDLE_VALUE, ERROR_FILE_NOT_FOUND,
TRUE);
- testType1_A("\\\\", 0xdeadbeef, INVALID_HANDLE_VALUE, IsWindows7OrGreater()
? ERROR_INVALID_NAME : ERROR_BAD_NETPATH, TRUE);
+ testType1_A("\\\\", 0xdeadbeef, INVALID_HANDLE_VALUE, ERROR_INVALID_NAME,
TRUE);
testType2_A("\\*", 0xdeadbeef, INVALID_HANDLE_VALUE, 0xdeadbeef);
/* Restore the old current directory */
@@ -308,7 +308,7 @@ static void Test_FindFirstFileW(void)
testType2_W(L"C:\\*", 0xdeadbeef, INVALID_HANDLE_VALUE, 0xdeadbeef);
testType1_W(L"\\", 0xdeadbeef, INVALID_HANDLE_VALUE, ERROR_FILE_NOT_FOUND,
TRUE);
- testType1_W(L"\\\\", 0xdeadbeef, INVALID_HANDLE_VALUE,
IsWindows7OrGreater() ? ERROR_INVALID_NAME : ERROR_BAD_NETPATH, TRUE);
+ testType1_W(L"\\\\", 0xdeadbeef, INVALID_HANDLE_VALUE, ERROR_INVALID_NAME,
TRUE);
testType2_W(L"\\*", 0xdeadbeef, INVALID_HANDLE_VALUE, 0xdeadbeef);
/* Restore the old current directory */
@@ -326,7 +326,7 @@ static void Test_FindFirstFileW(void)
testType2_W(L"C:\\*", 0xdeadbeef, INVALID_HANDLE_VALUE, 0xdeadbeef);
testType1_W(L"\\", 0xdeadbeef, INVALID_HANDLE_VALUE, ERROR_FILE_NOT_FOUND,
TRUE);
- testType1_W(L"\\\\", 0xdeadbeef, INVALID_HANDLE_VALUE,
IsWindows7OrGreater() ? ERROR_INVALID_NAME : ERROR_BAD_NETPATH, TRUE);
+ testType1_W(L"\\\\", 0xdeadbeef, INVALID_HANDLE_VALUE, ERROR_INVALID_NAME,
TRUE);
testType2_W(L"\\*", 0xdeadbeef, INVALID_HANDLE_VALUE, 0xdeadbeef);
/* Restore the old current directory */