From 82ae97e24898253c344a90ac21e4df04690304a4 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 23 Dec 2020 11:13:46 +0800 Subject: [PATCH] fix build error --- libcpu/sim/win32/cpu_port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcpu/sim/win32/cpu_port.c b/libcpu/sim/win32/cpu_port.c index 6caaa063aa..cc8ad9a25c 100644 --- a/libcpu/sim/win32/cpu_port.c +++ b/libcpu/sim/win32/cpu_port.c @@ -286,7 +286,7 @@ void rt_hw_context_switch(rt_uint32_t from, TriggerSimulateInterrupt(CPU_INTERRUPT_YIELD); // make sure the event is not already signaled - WinThread = (win_thread_t *)rt_interrupt_from_thread; + win_thread_t *WinThread = (win_thread_t *)rt_interrupt_from_thread; ResetEvent(WinThread->YieldEvent); /*