summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.c')
-rwxr-xr-xsrc/input.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/input.c b/src/input.c
index 389b658..6a35ab8 100755
--- a/src/input.c
+++ b/src/input.c
@@ -29,7 +29,7 @@ Revision History:
DLIST_ENTRY g_InputEventList;
volatile static ULONG g_uInputLock;
-extern CHAR g_szInitialCommand[SMALL_STRING_LEN_CHAR];
+extern CHAR *g_szInitialCommand;
#define INPUT_IS_LOCKED (g_uInputLock != 0)
#define LOCK_INPUT \
@@ -217,11 +217,12 @@ Return value:
_BlockBlockingReaders();
InitializeListHead(&g_InputEventList);
g_uInputLock = 0;
- if (g_szInitialCommand[0] != '\0')
+ if (g_szInitialCommand != NULL)
{
Trace("INPUT SYSTEM INIT: Pushing \"%s\"\n", g_szInitialCommand);
PushNewInput(g_szInitialCommand);
- g_szInitialCommand[0] = '\0';
+ SystemFreeMemory(g_szInitialCommand);
+ g_szInitialCommand = NULL;
}
}
@@ -246,9 +247,9 @@ Return value:
**/
{
- if (g_szInitialCommand[0] == '\0')
+ if (g_szInitialCommand == NULL)
{
- UtilPanic(INCONSISTENT_STATE,
+ UtilPanic(INCONSISTENT_STATE,
NULL, "Batch mode specified with no initial command",
NULL, NULL,
__FILE__, __LINE__);