kernel32/tests: Fix failures in test_GetThreadSelectorEntry() on 32-bit machines.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-05-04 18:29:42 -05:00 committed by Alexandre Julliard
parent 42a18cf5fa
commit 6849be3ffa
1 changed files with 4 additions and 2 deletions

View File

@ -1218,10 +1218,12 @@ static void test_GetThreadSelectorEntry(void)
SetLastError( 0xdeadbeef );
ret = GetThreadSelectorEntry(GetCurrentThread(), 0xdeadbeef, &entry);
ok(!ret, "GetThreadSelectorEntry(invalid) succeeded\n");
ok( GetLastError() == ERROR_GEN_FAILURE, "wrong error %u\n", GetLastError() );
ok( GetLastError() == ERROR_GEN_FAILURE
|| GetLastError() == ERROR_INVALID_THREAD_ID /* 32-bit */, "wrong error %u\n", GetLastError() );
ret = GetThreadSelectorEntry(GetCurrentThread(), ctx.SegDs + 0x100, &entry);
ok(!ret, "GetThreadSelectorEntry(invalid) succeeded\n");
ok( GetLastError() == ERROR_GEN_FAILURE, "wrong error %u\n", GetLastError() );
ok( GetLastError() == ERROR_GEN_FAILURE
|| GetLastError() == ERROR_NOACCESS /* 32-bit */, "wrong error %u\n", GetLastError() );
memset(&entry, 0x11, sizeof(entry));
ret = GetThreadSelectorEntry(GetCurrentThread(), ctx.SegFs, &entry);