kernel32: Check for a valid pointer before yanking the line
Hugh McMaster
hugh.mcmaster at outlook.com
Tue Dec 13 06:00:03 CST 2016
Fixes bug 41733.
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
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)
--
2.7.4
More information about the wine-patches
mailing list