Mem corruption fix in cyg_arch_mbox_get from Claudio Leonel

This commit is contained in:
jani 2003-09-18 07:28:15 +00:00
parent 48ec31d02c
commit 2a968d2b17

View File

@ -29,6 +29,9 @@
// -------------------------------------------
//####ECOSGPLCOPYRIGHTEND####
//==========================================================================
// Author: Jani Monoses
// Contributors: Claudio Leonel
//
/*
* This file implements the eCos specific sys_arch functions used by lwIP
@ -159,7 +162,10 @@ u32_t sys_arch_mbox_fetch(sys_mbox_t mbox, void **data, u32_t timeout)
d = cyg_mbox_get(mbox);
}
if (data)
*data = d;
if (d == (void *)&dummy_msg)
*data = NULL;
else
*data = d;
return tick_to_msec(end_time - start_time);
}