diff --git a/dlls/kernel32/tests/loader.c b/dlls/kernel32/tests/loader.c index ce598439a0b..c740d77b6a2 100644 --- a/dlls/kernel32/tests/loader.c +++ b/dlls/kernel32/tests/loader.c @@ -662,7 +662,7 @@ static void test_section_access(void) SetLastError(0xdeadbeef); hlib = LoadLibrary(dll_name); - ok(ret, "LoadLibrary error %d\n", GetLastError()); + ok(hlib != 0, "LoadLibrary error %d\n", GetLastError()); size = VirtualQuery((char *)hlib + section.VirtualAddress, &info, sizeof(info)); ok(size == sizeof(info),