kernel32: Remove redundant attributes check

Michael Stefaniuc mstefani at winehq.org
Wed Sep 20 05:27:59 CDT 2017


Signed-off-by: Michael Stefaniuc <mstefani 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);
-- 
2.9.5




More information about the wine-patches mailing list