kernel32: Implement IsThreadAFiber function.

This commit is contained in:
André Hentschel 2010-01-24 16:31:19 +01:00 committed by Alexandre Julliard
parent a9353a1caf
commit c008984a01
3 changed files with 10 additions and 1 deletions

View File

@ -304,3 +304,11 @@ BOOL WINAPI FlsSetValue( DWORD index, PVOID data )
NtCurrentTeb()->FlsSlots[index] = data; NtCurrentTeb()->FlsSlots[index] = data;
return TRUE; return TRUE;
} }
/***********************************************************************
* IsThreadAFiber (KERNEL32.@)
*/
BOOL WINAPI IsThreadAFiber(void)
{
return NtCurrentTeb()->Tib.u.FiberData != NULL;
}

View File

@ -749,6 +749,7 @@
@ stdcall IsProcessorFeaturePresent(long) @ stdcall IsProcessorFeaturePresent(long)
@ stub -i386 IsSLCallback @ stub -i386 IsSLCallback
@ stdcall IsSystemResumeAutomatic() @ stdcall IsSystemResumeAutomatic()
@ stdcall IsThreadAFiber()
@ stdcall IsValidCodePage(long) @ stdcall IsValidCodePage(long)
@ stdcall IsValidLanguageGroup(long long) @ stdcall IsValidLanguageGroup(long long)
@ stdcall IsValidLocale(long long) @ stdcall IsValidLocale(long long)

View File

@ -146,7 +146,7 @@ static void test_FiberHandling(void)
if (!pIsThreadAFiber) if (!pIsThreadAFiber)
{ {
skip( "IsThreadAFiber not present\n" ); win_skip( "IsThreadAFiber not present\n" );
return; return;
} }