kernel32: Check for a valid pointer before yanking the line.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2016-12-13 12:00:03 +00:00 committed by Alexandre Julliard
parent 6a3ffc4f3f
commit 8cacba5ff9
1 changed files with 2 additions and 1 deletions

View File

@ -636,7 +636,8 @@ static void WCEL_CapitalizeWord(WCEL_Context* ctx)
static void WCEL_Yank(WCEL_Context* ctx)
{
WCEL_InsertString(ctx, ctx->yanked);
if (ctx->yanked)
WCEL_InsertString(ctx, ctx->yanked);
}
static void WCEL_KillToEndOfLine(WCEL_Context* ctx)