Commit 7223330f authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

kernel32: Replace NULL argument with pointer to DWORD.

On Windows, passing in NULL can cause a memory access violation. Signed-off-by: 's avatarHugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent da26ee74
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment