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.
This commit is contained in:
Dirk Ziegelmeier 2018-11-13 20:35:53 +01:00
parent 915e923809
commit 530a4ccdce

View File

@ -688,7 +688,7 @@ sys_arch_mbox_tryfetch(sys_mbox_t *q, void **msg)
*msg = NULL; *msg = NULL;
} }
return SYS_ARCH_TIMEOUT; return SYS_MBOX_EMPTY;
} }
} }