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
27b0b936
Commit
27b0b936
authored
Nov 27, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Nov 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix crashes on win8 in console.
parent
428180ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
console.c
dlls/kernel32/tests/console.c
+10
-10
No files found.
dlls/kernel32/tests/console.c
View file @
27b0b936
...
...
@@ -1354,12 +1354,12 @@ static void test_WriteConsoleInputA(HANDLE input_handle)
LPDWORD
written
;
DWORD
expected_count
;
DWORD
last_error
;
int
win
7
_crash
;
int
win_crash
;
}
invalid_table
[]
=
{
{
NULL
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
NULL
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
NULL
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
event
,
0
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
...
...
@@ -1367,14 +1367,14 @@ static void test_WriteConsoleInputA(HANDLE input_handle)
{
NULL
,
&
event
,
1
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
INVALID_HANDLE_VALUE
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
event
,
0
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
&
event
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
event
,
1
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
input_handle
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
input_handle
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
input_handle
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
input_handle
,
NULL
,
1
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
input_handle
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
input_handle
,
&
event
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
...
...
@@ -1406,7 +1406,7 @@ static void test_WriteConsoleInputA(HANDLE input_handle)
for
(
i
=
0
;
i
<
sizeof
(
invalid_table
)
/
sizeof
(
invalid_table
[
0
]);
i
++
)
{
if
(
invalid_table
[
i
].
win
7
_crash
)
if
(
invalid_table
[
i
].
win_crash
)
continue
;
SetLastError
(
0xdeadbeef
);
...
...
@@ -1597,12 +1597,12 @@ static void test_WriteConsoleInputW(HANDLE input_handle)
LPDWORD
written
;
DWORD
expected_count
;
DWORD
last_error
;
int
win
7
_crash
;
int
win_crash
;
}
invalid_table
[]
=
{
{
NULL
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
0
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
NULL
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
NULL
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
NULL
,
1
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
NULL
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
NULL
,
&
event
,
0
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
...
...
@@ -1610,14 +1610,14 @@ static void test_WriteConsoleInputW(HANDLE input_handle)
{
NULL
,
&
event
,
1
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
0
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
NULL
,
1
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
INVALID_HANDLE_VALUE
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
event
,
0
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
INVALID_HANDLE_VALUE
,
&
event
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
INVALID_HANDLE_VALUE
,
&
event
,
1
,
&
count
,
0
,
ERROR_INVALID_HANDLE
},
{
input_handle
,
NULL
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
input_handle
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
input_handle
,
NULL
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
input_handle
,
NULL
,
1
,
&
count
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
},
{
input_handle
,
&
event
,
0
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
{
input_handle
,
&
event
,
1
,
NULL
,
0xdeadbeef
,
ERROR_INVALID_ACCESS
,
1
},
...
...
@@ -1649,7 +1649,7 @@ static void test_WriteConsoleInputW(HANDLE input_handle)
for
(
i
=
0
;
i
<
sizeof
(
invalid_table
)
/
sizeof
(
invalid_table
[
0
]);
i
++
)
{
if
(
invalid_table
[
i
].
win
7
_crash
)
if
(
invalid_table
[
i
].
win_crash
)
continue
;
SetLastError
(
0xdeadbeef
);
...
...
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