mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
[CMD] Add missing memory allocation NULL checks (#161). CORE-8304
Adapted from a patch by Jacob S. Preciado. Bring also the code suggestions emitted during review.
This commit is contained in:
@@ -45,10 +45,10 @@ extern BOOL bEcho; /* The echo flag */
|
||||
extern TCHAR textline[BATCH_BUFFSIZE]; /* Buffer for reading Batch file lines */
|
||||
|
||||
|
||||
LPTSTR FindArg (TCHAR, BOOL *);
|
||||
LPTSTR BatchParams (LPTSTR, LPTSTR);
|
||||
VOID ExitBatch (VOID);
|
||||
INT Batch (LPTSTR, LPTSTR, LPTSTR, PARSED_COMMAND *);
|
||||
BOOL BatchGetString (LPTSTR lpBuffer, INT nBufferLength);
|
||||
LPTSTR FindArg(TCHAR, BOOL *);
|
||||
LPTSTR BatchParams(LPTSTR, LPTSTR);
|
||||
VOID ExitBatch(VOID);
|
||||
INT Batch(LPTSTR, LPTSTR, LPTSTR, PARSED_COMMAND *);
|
||||
BOOL BatchGetString(LPTSTR lpBuffer, INT nBufferLength);
|
||||
LPTSTR ReadBatchLine(VOID);
|
||||
VOID AddBatchRedirection(REDIRECTION **);
|
||||
|
||||
Reference in New Issue
Block a user