Michael Stefaniuc : kernel32: Remove redundant attributes check.
Alexandre Julliard
julliard at winehq.org
Wed Sep 20 15:10:23 CDT 2017
Module: wine
Branch: master
Commit: c7411a639053565bea476c6dec37f327a4c3fb67
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c7411a639053565bea476c6dec37f327a4c3fb67
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Wed Sep 20 12:27:59 2017 +0200
kernel32: Remove redundant attributes check.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernel32/editline.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/kernel32/editline.c b/dlls/kernel32/editline.c
index 6c0b8eb..7492604 100644
--- a/dlls/kernel32/editline.c
+++ b/dlls/kernel32/editline.c
@@ -1000,8 +1000,7 @@ WCHAR* CONSOLE_Readline(HANDLE hConsoleIn, BOOL can_pos_cursor)
ctx.insert = !ctx.insert;
GetConsoleScreenBufferInfo(ctx.hConOut, &csbi);
- if (ctx.csbi.wAttributes != csbi.wAttributes)
- ctx.csbi.wAttributes = csbi.wAttributes;
+ ctx.csbi.wAttributes = csbi.wAttributes;
if (func)
(func)(&ctx);
More information about the wine-cvs
mailing list