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:
parent
6a3ffc4f3f
commit
8cacba5ff9
@ -636,7 +636,8 @@ static void WCEL_CapitalizeWord(WCEL_Context* ctx)
|
|||||||
|
|
||||||
static void WCEL_Yank(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)
|
static void WCEL_KillToEndOfLine(WCEL_Context* ctx)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user