Commit d25854ad authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

kernel32/tests: Fix fiber test errors on newer Win10.

parent 26ad403c
......@@ -217,13 +217,12 @@ static void test_FiberLocalStorage(void)
SetLastError( 0xdeadbeef );
ret = pFlsSetValue( 128, (void*) 0x217 );
ok( !ret, "setting fls index 128 (out of bounds) succeeded\n" );
ok( GetLastError() == ERROR_INVALID_PARAMETER,
ok( ret || GetLastError() == ERROR_INVALID_PARAMETER,
"setting fls index 128 (out of bounds) wrong error %u\n", GetLastError() );
SetLastError( 0xdeadbeef );
val = pFlsGetValue( 128 );
ok( GetLastError() == ERROR_INVALID_PARAMETER,
ok( GetLastError() == ERROR_INVALID_PARAMETER || val == (void *)0x217,
"getting fls index 128 (out of bounds) wrong error %u\n", GetLastError() );
/* Test index 0 */
......@@ -276,7 +275,7 @@ static void test_FiberLocalStorage(void)
SetLastError( 0xdeadbeef );
val = pFlsGetValue( fls_2 );
ok( val == NULL, "fls index %u wrong value %p\n", fls, val );
ok( val == NULL || val == (void *)0xdeadbabe, "fls index %u wrong value %p\n", fls, val );
ok( GetLastError() == ERROR_SUCCESS,
"getting fls index %u failed with error %u\n", fls_2, GetLastError() );
pFlsFree( fls_2 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment