Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f1b5e98a
Commit
f1b5e98a
authored
Nov 22, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Nov 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add some GetLastError() values for Windows 8 and 10.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8a4508ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
console.c
dlls/kernel32/tests/console.c
+12
-4
No files found.
dlls/kernel32/tests/console.c
View file @
f1b5e98a
...
...
@@ -2616,27 +2616,35 @@ static void test_ReadConsole(void)
SetLastError
(
0xdeadbeef
);
ret
=
GetFileSize
(
std_input
,
NULL
);
ok
(
ret
==
INVALID_FILE_SIZE
,
"expected INVALID_FILE_SIZE, got %#x
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"expected ERROR_INVALID_HANDLE, got %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
||
GetLastError
()
==
ERROR_INVALID_FUNCTION
,
/* Win 8, 10 */
"expected ERROR_INVALID_HANDLE, got %d
\n
"
,
GetLastError
());
bytes
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
ret
=
ReadFile
(
std_input
,
buf
,
-
128
,
&
bytes
,
NULL
);
ok
(
!
ret
,
"expected 0, got %u
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_NOT_ENOUGH_MEMORY
,
"expected ERROR_NOT_ENOUGH_MEMORY, got %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_NOT_ENOUGH_MEMORY
||
GetLastError
()
==
ERROR_NOACCESS
,
/* Win 8, 10 */
"expected ERROR_NOT_ENOUGH_MEMORY, got %d
\n
"
,
GetLastError
());
ok
(
!
bytes
,
"expected 0, got %u
\n
"
,
bytes
);
bytes
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
ret
=
ReadConsoleA
(
std_input
,
buf
,
-
128
,
&
bytes
,
NULL
);
ok
(
!
ret
,
"expected 0, got %u
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_NOT_ENOUGH_MEMORY
,
"expected ERROR_NOT_ENOUGH_MEMORY, got %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_NOT_ENOUGH_MEMORY
||
GetLastError
()
==
ERROR_NOACCESS
,
/* Win 8, 10 */
"expected ERROR_NOT_ENOUGH_MEMORY, got %d
\n
"
,
GetLastError
());
ok
(
bytes
==
0xdeadbeef
,
"expected 0xdeadbeef, got %#x
\n
"
,
bytes
);
bytes
=
0xdeadbeef
;
SetLastError
(
0xdeadbeef
);
ret
=
ReadConsoleW
(
std_input
,
buf
,
-
128
,
&
bytes
,
NULL
);
ok
(
!
ret
,
"expected 0, got %u
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_NOT_ENOUGH_MEMORY
,
"expected ERROR_NOT_ENOUGH_MEMORY, got %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_NOT_ENOUGH_MEMORY
||
GetLastError
()
==
ERROR_NOACCESS
,
/* Win 8, 10 */
"expected ERROR_NOT_ENOUGH_MEMORY, got %d
\n
"
,
GetLastError
());
ok
(
bytes
==
0xdeadbeef
,
"expected 0xdeadbeef, got %#x
\n
"
,
bytes
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment