VALID() wasn't resetting invalid error contexts back to NULL before atempting to ENSURE_READY() them
This commit is contained in:
@@ -186,6 +186,7 @@ void akerr_init_errno(void);
|
|||||||
#define VALID(__err_context, __stmt) \
|
#define VALID(__err_context, __stmt) \
|
||||||
__stmt; \
|
__stmt; \
|
||||||
if ( akerr_valid_error_address(__err_context) == 0 ) { \
|
if ( akerr_valid_error_address(__err_context) == 0 ) { \
|
||||||
|
__err_context = NULL; \
|
||||||
FAIL(__err_context, AKERR_BEHAVIOR, "Received (akerr_Error *) from an invalid memory region. (Did the method finish without calling SUCCEED_RETURN?)"); \
|
FAIL(__err_context, AKERR_BEHAVIOR, "Received (akerr_Error *) from an invalid memory region. (Did the method finish without calling SUCCEED_RETURN?)"); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user