mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 13:13:39 +00:00
cmd: Reduce the scope of a global variable.
This commit is contained in:
parent
51b05c72d7
commit
1a8df977ac
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue