cmd: Reduce the scope of a global variable.

This commit is contained in:
Frédéric Delanoy 2011-11-29 14:39:27 +01:00 committed by Alexandre Julliard
parent 51b05c72d7
commit 1a8df977ac

View file

@ -45,16 +45,17 @@ WCHAR quals[MAX_PATH], param1[MAXSTRING], param2[MAXSTRING];
BATCH_CONTEXT *context = NULL;
extern struct env_stack *pushd_directories;
static const WCHAR *pagedMessage = NULL;
static char *output_bufA = NULL;
#define MAX_WRITECONSOLE_SIZE 65535
static BOOL unicodePipes = FALSE;
#define MAX_WRITECONSOLE_SIZE 65535
/*
* Returns a buffer for reading from/writing to file
* Never freed
*/
static char *get_file_buffer(void)
{
static char *output_bufA = NULL;
if (!output_bufA) {
output_bufA = HeapAlloc(GetProcessHeap(), 0, MAX_WRITECONSOLE_SIZE);
if (!output_bufA)