mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 12:13:37 +00:00
kernel32/tests: Workaround broken behavior in Win7 Pro64.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
parent
24069aad30
commit
8ad9ddaa28
|
@ -3300,10 +3300,12 @@ static void test_ReadConsole(HANDLE input)
|
|||
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = GetFileSize(input, NULL);
|
||||
ok(ret == INVALID_FILE_SIZE, "expected INVALID_FILE_SIZE, got %#lx\n", ret);
|
||||
ok(GetLastError() == ERROR_INVALID_HANDLE ||
|
||||
GetLastError() == ERROR_INVALID_FUNCTION, /* Win 8, 10 */
|
||||
"expected ERROR_INVALID_HANDLE, got %ld\n", GetLastError());
|
||||
ok(ret == INVALID_FILE_SIZE || broken(TRUE), /* only Win7 pro64 on 64bit returns a valid file size here */
|
||||
"expected INVALID_FILE_SIZE, got %#lx\n", ret);
|
||||
if (ret == INVALID_FILE_SIZE)
|
||||
ok(GetLastError() == ERROR_INVALID_HANDLE ||
|
||||
GetLastError() == ERROR_INVALID_FUNCTION, /* Win 8, 10 */
|
||||
"expected ERROR_INVALID_HANDLE, got %ld\n", GetLastError());
|
||||
|
||||
bytes = 0xdeadbeef;
|
||||
SetLastError(0xdeadbeef);
|
||||
|
|
Loading…
Reference in a new issue