From 530a4ccdce8e72abd13a9b886b9da39c604ed0be Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Tue, 13 Nov 2018 20:35:53 +0100 Subject: [PATCH] Fix return value of sys_arch_mbox_tryfetch() in Win32 port It should be SYS_MBOX_EMPTY, not SYS_ARCH_TIMEOUT. SYS_MBOX_EMPTY is defined to SYS_ARCH_TIMEOUT, so there is no bug. But for good readability of the code, SYS_MBOX_EMPTY should be used. --- contrib/ports/win32/sys_arch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ports/win32/sys_arch.c b/contrib/ports/win32/sys_arch.c index 2f261dc7..9643ff19 100644 --- a/contrib/ports/win32/sys_arch.c +++ b/contrib/ports/win32/sys_arch.c @@ -688,7 +688,7 @@ sys_arch_mbox_tryfetch(sys_mbox_t *q, void **msg) *msg = NULL; } - return SYS_ARCH_TIMEOUT; + return SYS_MBOX_EMPTY; } }