eric pouech (@epo) commented about programs/cmd/directory.c:
WCHAR fname[MAX_PATH]; WCHAR ext[MAX_PATH]; unsigned num_empty = 0, num_with_data = 0;
RETURN_CODE return_code = NO_ERROR;
errorlevel = NO_ERROR;
this should not be necessary (in fact starting from here up the exit of the function, you should only deal with return_code... errorlevel should be set upon exiting)