Hugh McMaster : kernel32: Check for a valid pointer before yanking the line.
Alexandre Julliard
julliard at winehq.org
Tue Dec 13 16:36:23 CST 2016
Module: wine
Branch: master
Commit: 8cacba5ff942ee91124895bb10fec026556cdf6f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8cacba5ff942ee91124895bb10fec026556cdf6f
Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date: Tue Dec 13 12:00:03 2016 +0000
kernel32: Check for a valid pointer before yanking the line.
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernel32/editline.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/kernel32/editline.c b/dlls/kernel32/editline.c
index 415f28e..6c0b8eb 100644
--- a/dlls/kernel32/editline.c
+++ b/dlls/kernel32/editline.c
@@ -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)
More information about the wine-cvs
mailing list