https://git.reactos.org/?p=reactos.git;a=commitdiff;h=044be0e3142c4a3be7179…
commit 044be0e3142c4a3be71796b98237fa528866c090
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Sun Nov 22 13:21:00 2020 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sun Nov 22 13:22:03 2020 +0100
[USER32_DYNAMIC_APITEST] Remove a tautological check. Spotted by clang.
---
modules/rostests/apitests/user32_dynamic/load.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/modules/rostests/apitests/user32_dynamic/load.c
b/modules/rostests/apitests/user32_dynamic/load.c
index 4c25aef4ec9..ea4a75e2f08 100644
--- a/modules/rostests/apitests/user32_dynamic/load.c
+++ b/modules/rostests/apitests/user32_dynamic/load.c
@@ -16,14 +16,12 @@ START_TEST(load)
BOOL Ret;
DWORD Error;
PPEB Peb = NtCurrentPeb();
- PTEB Teb = NtCurrentTeb();
/* Before init */
hUser32 = GetModuleHandleW(L"user32");
ok(hUser32 == NULL, "hUser32 = %p\n", hUser32);
ok(Peb->KernelCallbackTable == NULL, "KernelCallbackTable = %p\n",
Peb->KernelCallbackTable);
ok(Peb->PostProcessInitRoutine == NULL, "PostProcessInitRoutine = %p\n",
Peb->PostProcessInitRoutine);
- ok(Teb->Win32ClientInfo != NULL, "Win32ClientInfo = %p\n",
Teb->Win32ClientInfo);
SetLastError(12345);
hUser32 = LoadLibraryW(L"user32");
@@ -36,7 +34,6 @@ START_TEST(load)
ok(hUser32_2 == hUser32, "hUser32 = %p\n", hUser32);
ok(Peb->KernelCallbackTable != NULL, "KernelCallbackTable = %p\n",
Peb->KernelCallbackTable);
ok(Peb->PostProcessInitRoutine == NULL, "PostProcessInitRoutine = %p\n",
Peb->PostProcessInitRoutine);
- ok(Teb->Win32ClientInfo != NULL, "Win32ClientInfo = %p\n",
Teb->Win32ClientInfo);
SetLastError(12345);
hUser32_2 = LoadLibraryW(L"user32");
@@ -49,7 +46,6 @@ START_TEST(load)
ok(hUser32_2 == hUser32, "hUser32 = %p\n", hUser32);
ok(Peb->KernelCallbackTable != NULL, "KernelCallbackTable = %p\n",
Peb->KernelCallbackTable);
ok(Peb->PostProcessInitRoutine == NULL, "PostProcessInitRoutine = %p\n",
Peb->PostProcessInitRoutine);
- ok(Teb->Win32ClientInfo != NULL, "Win32ClientInfo = %p\n",
Teb->Win32ClientInfo);
SetLastError(12345);
Ret = FreeLibrary(hUser32);
@@ -62,7 +58,6 @@ START_TEST(load)
ok(hUser32_2 == hUser32, "hUser32 = %p\n", hUser32);
ok(Peb->KernelCallbackTable != NULL, "KernelCallbackTable = %p\n",
Peb->KernelCallbackTable);
ok(Peb->PostProcessInitRoutine == NULL, "PostProcessInitRoutine = %p\n",
Peb->PostProcessInitRoutine);
- ok(Teb->Win32ClientInfo != NULL, "Win32ClientInfo = %p\n",
Teb->Win32ClientInfo);
SetLastError(12345);
Ret = FreeLibrary(hUser32);
@@ -75,7 +70,6 @@ START_TEST(load)
ok(hUser32_2 == hUser32, "hUser32 = %p\n", hUser32);
ok(Peb->KernelCallbackTable != NULL, "KernelCallbackTable = %p\n",
Peb->KernelCallbackTable);
ok(Peb->PostProcessInitRoutine == NULL, "PostProcessInitRoutine = %p\n",
Peb->PostProcessInitRoutine);
- ok(Teb->Win32ClientInfo != NULL, "Win32ClientInfo = %p\n",
Teb->Win32ClientInfo);
SetLastError(12345);
Ret = FreeLibrary(hUser32);
@@ -88,7 +82,6 @@ START_TEST(load)
ok(hUser32 == NULL, "hUser32 = %p\n", hUser32);
ok(Peb->KernelCallbackTable != NULL, "KernelCallbackTable = %p\n",
Peb->KernelCallbackTable);
ok(Peb->PostProcessInitRoutine == NULL, "PostProcessInitRoutine = %p\n",
Peb->PostProcessInitRoutine);
- ok(Teb->Win32ClientInfo != NULL, "Win32ClientInfo = %p\n",
Teb->Win32ClientInfo);
SetLastError(12345);
hUser32 = LoadLibraryW(L"user32");
@@ -101,7 +94,6 @@ START_TEST(load)
ok(hUser32_2 == hUser32, "hUser32 = %p\n", hUser32);
ok(Peb->KernelCallbackTable != NULL, "KernelCallbackTable = %p\n",
Peb->KernelCallbackTable);
ok(Peb->PostProcessInitRoutine == NULL, "PostProcessInitRoutine = %p\n",
Peb->PostProcessInitRoutine);
- ok(Teb->Win32ClientInfo != NULL, "Win32ClientInfo = %p\n",
Teb->Win32ClientInfo);
SetLastError(12345);
Ret = FreeLibrary(hUser32);
@@ -114,7 +106,6 @@ START_TEST(load)
ok(hUser32_2 == hUser32, "hUser32 = %p\n", hUser32);
ok(Peb->KernelCallbackTable != NULL, "KernelCallbackTable = %p\n",
Peb->KernelCallbackTable);
ok(Peb->PostProcessInitRoutine == NULL, "PostProcessInitRoutine = %p\n",
Peb->PostProcessInitRoutine);
- ok(Teb->Win32ClientInfo != NULL, "Win32ClientInfo = %p\n",
Teb->Win32ClientInfo);
SetLastError(12345);
Ret = FreeLibrary(hUser32);
@@ -127,5 +118,4 @@ START_TEST(load)
ok(hUser32 == NULL, "hUser32 = %p\n", hUser32);
ok(Peb->KernelCallbackTable != NULL, "KernelCallbackTable = %p\n",
Peb->KernelCallbackTable);
ok(Peb->PostProcessInitRoutine == NULL, "PostProcessInitRoutine = %p\n",
Peb->PostProcessInitRoutine);
- ok(Teb->Win32ClientInfo != NULL, "Win32ClientInfo = %p\n",
Teb->Win32ClientInfo);
}