kernel32: Replace NULL argument with pointer to DWORD.

On Windows, passing in NULL can cause a memory access violation.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2015-11-30 19:08:42 +11:00 committed by Alexandre Julliard
parent da26ee745c
commit 7223330ffc
1 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,9 @@ static void WCEL_Dump(WCEL_Context* ctx, const char* pfx)
static BOOL WCEL_Get(WCEL_Context* ctx, INPUT_RECORD* ir)
{
if (ReadConsoleInputW(ctx->hConIn, ir, 1, NULL)) return TRUE;
DWORD num_read;
if (ReadConsoleInputW(ctx->hConIn, ir, 1, &num_read)) return TRUE;
ctx->error = 1;
return FALSE;
}