Add missing checks if memory allocation was successful. Also adapt caller(s) when possible.
* set last error to ERROR_ENVVAR_NOT_FOUND in GetEnvironmentVariableA if not found * remove unused variables in SetEnvironmentVariableA * add more test cases