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:
parent
da26ee745c
commit
7223330ffc
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue