Commit bdf50d88 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

kernel32/tests: Always retrieve the output mode.

Fixes a compiler warning. Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent ee0337f8
...@@ -1520,8 +1520,8 @@ static void test_Console(void) ...@@ -1520,8 +1520,8 @@ static void test_Console(void)
startup.hStdError = startup.hStdOutput; startup.hStdError = startup.hStdOutput;
ok(GetConsoleScreenBufferInfo(startup.hStdOutput, &sbi), "Getting sb info\n"); ok(GetConsoleScreenBufferInfo(startup.hStdOutput, &sbi), "Getting sb info\n");
ok(GetConsoleMode(startup.hStdInput, &modeIn) && ok(GetConsoleMode(startup.hStdInput, &modeIn), "Getting console in mode\n");
GetConsoleMode(startup.hStdOutput, &modeOut), "Getting console modes\n"); ok(GetConsoleMode(startup.hStdOutput, &modeOut), "Getting console out mode\n");
cpIn = GetConsoleCP(); cpIn = GetConsoleCP();
cpOut = GetConsoleOutputCP(); cpOut = GetConsoleOutputCP();
...@@ -1536,8 +1536,8 @@ static void test_Console(void) ...@@ -1536,8 +1536,8 @@ static void test_Console(void)
/* now get the modification the child has made, and resets parents expected values */ /* now get the modification the child has made, and resets parents expected values */
ok(GetConsoleScreenBufferInfo(startup.hStdOutput, &sbiC), "Getting sb info\n"); ok(GetConsoleScreenBufferInfo(startup.hStdOutput, &sbiC), "Getting sb info\n");
ok(GetConsoleMode(startup.hStdInput, &modeInC) && ok(GetConsoleMode(startup.hStdInput, &modeInC), "Getting console in mode\n");
GetConsoleMode(startup.hStdOutput, &modeOutC), "Getting console modes\n"); ok(GetConsoleMode(startup.hStdOutput, &modeOutC), "Getting console out mode\n");
SetConsoleMode(startup.hStdInput, modeIn); SetConsoleMode(startup.hStdInput, modeIn);
SetConsoleMode(startup.hStdOutput, modeOut); SetConsoleMode(startup.hStdOutput, modeOut);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment