Several functions offer an optional return length parameter, which is used to return the amount of bytes that were actually read / whatever. However, as they are optional, they might be set to NULL. Introduce ENSURE_DWORD and similar macro's which ensure that the parameter is set, i.e. if such parameter is NULL, then we assign it a stack value.
This will improve the dump buffer functionality, because otherwise we'd have to guess the length etc.
Several functions offer an optional
return length
parameter, which is used to return the amount of bytes that were actually read / whatever. However, as they are optional, they might be set toNULL
. IntroduceENSURE_DWORD
and similar macro's which ensure that the parameter is set, i.e. if such parameter isNULL
, then we assign it a stack value.This will improve the
dump buffer
functionality, because otherwise we'd have to guess the length etc.