Commit 232b18d8 authored by Jinoh Kang's avatar Jinoh Kang Committed by Alexandre Julliard

kernel32/tests: Fix console test with odd-sized consoles.

parent 7a92a33b
......@@ -545,8 +545,8 @@ static void doChild(const char* file, const char* option)
ok( ret, "Setting mode (%ld)\n", GetLastError());
ret = SetConsoleMode(hConOut, modeOut ^ 1);
ok( ret, "Setting mode (%ld)\n", GetLastError());
sbi.dwCursorPosition.X ^= 1;
sbi.dwCursorPosition.Y ^= 1;
sbi.dwCursorPosition.X = !sbi.dwCursorPosition.X;
sbi.dwCursorPosition.Y = !sbi.dwCursorPosition.Y;
ret = SetConsoleCursorPosition(hConOut, sbi.dwCursorPosition);
ok( ret, "Setting cursor position (%ld)\n", GetLastError());
}
......
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