Added SwitchToThread.
authorAric Stewart <aric@codeweavers.com>
Fri, 16 Aug 2002 01:38:20 +0000 (01:38 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 16 Aug 2002 01:38:20 +0000 (01:38 +0000)
dlls/kernel/kernel32.spec
dlls/kernel/kernel_main.c

index c12f4db..988c4b6 100644 (file)
@@ -937,7 +937,7 @@ init        MAIN_KernelInit
 @ stdcall SetWaitableTimer(long ptr long ptr ptr long) SetWaitableTimer
 @ stub SignalObjectAndWait
 @ stub SwitchToFiber
-@ stub SwitchToThread
+@ stdcall SwitchToThread() SwitchToThread
 @ forward TryEnterCriticalSection ntdll.RtlTryEnterCriticalSection
 @ stdcall VirtualAllocEx(long ptr long long long) VirtualAllocEx
 @ stub VirtualFreeEx
index b3318d6..2469103 100644 (file)
@@ -155,3 +155,9 @@ LONG WINAPI KERNEL_nop(void)
 {
     return 0;
 }
+
+BOOL WINAPI SwitchToThread(VOID)
+{
+    Sleep(0);
+    return 1;
+}